Use relative path in shortcode

Under content/.../, I have a markdown file and an image, how can I use {{< figure src="image.png" >}} to include the image?

|- image.png

The simplest way would be to reorganize your content in Page Bundles. See:

It’s in a page bundle, I have a in the folder, however the image still can’t show.

I found the corrent way is to put the image and the file in a new folder, and rename the file to refers to a list page. The image will not show because obviously it is meant to appear in a single page.

As per the folder structure above:

|- image.png does not define a Page Bundle.
As you found out renaming to fixed the issue.

Also in the future please post the solution in full.
Others might find it helpful.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.