How can I use images in relative path? #380
|
I prefer putting images and markdown file in same parent directory like this: But when I tried to use those images in markdown file, they don't show up. (testing in live preview mode) I've tried with these syntaxs: None of these works and Hugo says How can I use images in my post? |
Answered by
razonyang
Sep 20, 2023
Replies: 1 comment 2 replies
|
Hi, it won't work with your current content structure. In short, you should put the images under the page folder. The Read more on: |
2 replies
Answer selected by
TetraTheta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it won't work with your current content structure. In short, you should put the images under the page folder.
The
index.mdmakes the page (/game/minecraft/001-todays-construction/) become a leaf bundle, if you want to share the images cross multiple pages, you can either save it inassets(URL should begin with a leading slash/) orstaticfolder.Read more on: