-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace site cover with featured image from page? #520
Comments
Hi! I haven't tested myself but I think you can replace the following line (28): {{> hero background=@site.cover_image}} with this: {{#get "posts" id="xxxxxxxxxxxxxxx" as |post|}}
{{#post}}
{{> hero background=featured_image}}
{{/post}}
{{/get}} Where the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Absolutely almost a perfect theme! Love all of it. I just have a question.
Is it possible to replace the site cover image on the index page with the featured image from a page?
The reason is that I'm using content collections and pull data from pages, and I'd like the featured image to show instead of the site cover. I've tried just replacing the
{{> header [email protected]_image}}
with{{> header background= featured_image}}
and wrapping post or page context around it, but it doesn't work. Please help or guide.The text was updated successfully, but these errors were encountered: