Skip to content

Is it possible to add images to post list appearance? #213

Discussion options

You must be logged in to vote

I think this is worthwhile as a built-in feature. I've created an issue here:

#214

I would provide a short-term immediate fix, but to implement this is somewhat complex with respect to CSS. MAYBE you could try this, but I haven't tested it. This is meant as a quick fix and not a permanent, robust solution.

In _includes/post-excerpt.html:

<div class="post-excerpt">
  {% assign image = post.image %}
  <img src="{{ image | relative_url }}" style="height: 100px; float: left;" />

   ... etc...
</div>

Then in your post front matter, add an image: images/some-photo.jpg key.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vincerubinetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants