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? |
Beta Was this translation helpful? Give feedback.
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: |
Beta Was this translation helpful? Give feedback.
Hi, it won't work with your current content structure. In short, you should put the images under the page folder.
The
index.md
makes 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/
) orstatic
folder.Read more on: