You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
[BUG] Featured Images seem to HAVE to be called featured-image.<extension> in order to work #11
I have tried featured images in various options, with random names, various yaml tags, when not called featured-image. it will cause the image to produce a broken link, even when using Page Resources as described.
Expected behavior
featuredImage: picture.jpg
or
resources:
- name: "picture"
src: "picture.jpg"
should display the Featured Image picture.jpg
Instead, it ONLY works when naming it featured-image.
Build Environment
OS: Windows 10 Enterprise [2004/19041.685]
Theme version/commit 1.1.0
Hugo version Hugo Static Site Generator v0.79.1/extended windows/amd64
Please try to use Hugo extended version before opening the issue.
You cannot change the name field - it must always be featured-image. This allows the template to understand that this picture is being used for a preview. Only the src field changes.
Activity
uPagge commentedon Jan 3, 2021
Thanks for the message, I will study how you will have free time
uPagge commentedon Jan 3, 2021
I researched your question
You cannot change the name field - it must always be featured-image. This allows the template to understand that this picture is being used for a preview. Only the src field changes.
For example so
I checked this option works
uPagge commentedon Jan 3, 2021
However, there really is a problem with the featuredImage variable, I will try to solve it in the next version.
nareshganesan commentedon Mar 7, 2021
@uPagge Thanks for your awesome work!
Is there a way to have a featured image specific to light/dark mode? Not sure if this is in the roadmap.
uPagge commentedon Mar 7, 2021
@nareshganesan I’ll think if this can be implemented, it’s better to create a separate issue feature so that I don’t forget about it))
nareshganesan commentedon Mar 7, 2021
@uPagge I have raised issue #54