Skip to content

How can I use images in relative path? #380

Closed Answered by razonyang
TetraTheta asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, it won't work with your current content structure. In short, you should put the images under the page folder.

content/game/minecraft/
├ 001-todays-construction
│ ├ index.md
│ ├ 001.png
│ ├ 002.png
│ ├ 003.png
│ ├ 004.png

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 in assets (URL should begin with a leading slash /) or static folder.

Read more on:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TetraTheta
Comment options

@razonyang
Comment options

Answer selected by TetraTheta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants