I’d like to make a simple template and use this when I want to post lists (favorite books, music, etc.) Currently, when I make custom lists I end up writing some HTML blocks and it’s kind of annoying (everything ends up as blocks and it’s harder to tweak HTML in a block vs just edit text in the editor.)
One of the custom HTML formats I like has an image along the side and text next to it and this stacks nicely. I’d love to have a simple process that just takes the image/text I add in the editor and auto transforms the style when I hit preview/post. Even better if it shows it in realtime in the editor but I kinda don’t care how the data looks there. I just don’t want to fidget with HTML when I am writing.
I was wondering if folks had any advice for how to best achieve this and/or examples for how they’ve done it? I assume I might need to write some custom JS which is fine but if there’s a simpler way I’d love to understand it. I was hoping to just stick to a simple format when I type in the ghost editor like what’s described below and have it transformed using a template with HTML similar to what’s embedded further down. Thanks for any thoughts!
image /n
title #1/subtitle text /n
author name /n
description text /n
image /n
title #2/subtitle text /n
author name /n
description text /n
etc, etc
<div style="display: flex; align-items: start; width: 100%; margin-bottom: 20px;">
<a href="https://customlink.com" style="flex: 0 0 40%; margin-right: 20px; text-decoration: none;">
<img src="https://customlink.com/image.jpeg" style="width: 100%; margin-top: 7px;">
</a>
<div style="flex: 1; margin-top: 0;">
<a href="https://customlink.com">Title: Subtitle</a><br>by Author / Artist<br><br>
Description text
</div>
</div>