Log in Sign up

Thumbnails on index pages?

Is there a way to display the thumbnails on ~/page/1? I'm using a variation of of the Blog template, but I want my homepage to not be the list of blogposts, so instead I have a link to https://www.patternsthatabide.xyz/page/1 on the top bar. So it'd be cool if it displayed thumbnails there.


6 months ago, 3 replies   developers   thumbnails   Edit question

You'll need to edit your template's entries.html file to include the thumbnail. Add something like this inside the {{#entries}} ... {{/entries}} block:

{{#thumbnail.medium.url}}
<img src="{{{thumbnail.medium.url}}}"/>
{{/thumbnail.medium.url}}

Does that help? Please let me know if you have any questions about this or anything else

Answered 8 months ago · Edit answer

thanks! it works, kind of. This simply adds a picture to below the text. Would it be possible to have the picture to the left of the text?

I would like the effect to be similar to what happens in magazine, but with much smaller icon

Answered 7 months ago · Edit answer

For sure it is possible, but you'll need to dig into your template's CSS to make these layout choices happen. If you need a nudge in the right direction, I highly recommend using some sort of AI tools to generate this for you – ChatGPT will be able to work this out pretty quickly

Answered 6 months ago · Edit answer