Skip to content
Discussion options

You must be logged in to vote

You could define the hero image via front matter. You could then use that variable, e.g. page.meta.hero in your template:

---
hero: path/to/hero/image.png
---

# Document title

In your template:

<img src="{{ page.meta.hero }}" />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@toomanybrians
Comment options

Answer selected by toomanybrians
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