Skip to content

How to Set an Image as the Post Excerpt? #9128

Answered by pranabdas
orion-miller asked this question in Q&A
Discussion options

You must be logged in to vote

How about, in the front matter:

---
excerpt_img_url: "/assets/img/xxxx.png"
---

and where you want to render it:

![img alt]({{ page.excerpt_img_url }})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@orion-miller
Comment options

Answer selected by orion-miller
Comment options

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