davidb
1
Hello,
I am seeing my featured_image not working on my (index) home page. Now I am wondering if this is somehow related to the issue discussed here.
The featured image is NOT working here:
or here: About | Blog
But it is working on the posts level:
Not sure why this is. It seems to be related to my hugo update.
Here is the repo:
Take a look in themes/ananke/exampleSite
, specifically themes/ananke/exampleSite/content/en/_index.md
.
It uses the cascade
feature to set featured_image
for all pages. This adds the value where missing, but does not override existing values.
To set a unique featured image on the home page (no cascading):
hugo new _index.md
Then set featured_image in front matter.
To set a unique featured image on the post list page (no cascading):
hugo new post/_index.md
Then set featured_image in front matter.
1 Like
davidb
3
Very helpful. Thank you very much.
Works!
system
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.