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
So, I am trying to use the cover image feature. I store my images in "assets/images", but the image won't show up, and I do not understand why.
For my Profile image, I also store it inside assets/images, and when I use it as cover, it works. But anything else won't work.
If I use an image from the static directory, it works. You can see my different test in the front-matter.
I don't know if this is a bug of if I am just missing something, because afaik, I just did exactly the same as what is done in the exampleSite.
Also, I do not understand why it tries to get the image from /projects//images/** sometimes, and sometimes directly from /images/**
Front-matter:
---title: "My 1st post"draft: falsedescription: "Desc Text."cover:
#image: "/images/avatar.jpg" # Works (image in /assets/images/avatar.jpg)#image: "images/test2.jpg" # Works (image in /static/images/test2.jpg)image: "/images/test.jpg"# Don't work (image in /assets/images/test.jpg) 404 ERROR GET http://localhost:1313/images/test.jpg#image: "images/test.jpg" # Don't work (image in /assets/images/test.jpg) 404 ERROR GET http://localhost:1313/projects/alazia/images/test.jpgalt: "test"# alt textcaption: "test"# display caption under coverrelative: false # when using page bundles set this to truehidden: false # only hide on current single pageexternalUrl: "https://adriendudon.me"---
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
So, I am trying to use the cover image feature. I store my images in "assets/images", but the image won't show up, and I do not understand why.
For my Profile image, I also store it inside assets/images, and when I use it as cover, it works. But anything else won't work.
If I use an image from the static directory, it works. You can see my different test in the front-matter.
I don't know if this is a bug of if I am just missing something, because afaik, I just did exactly the same as what is done in the exampleSite.
Also, I do not understand why it tries to get the image from /projects//images/** sometimes, and sometimes directly from /images/**
Front-matter:
hugo.yaml:
Directory structure:
Beta Was this translation helpful? Give feedback.
All reactions