Under content/.../, I have a markdown file and an image, how can I use {{< figure src="image.png" >}} to include the image?
|- test.md
|- image.png
Under content/.../, I have a markdown file and an image, how can I use {{< figure src="image.png" >}} to include the image?
|- test.md
|- image.png
The simplest way would be to reorganize your content in Page Bundles. See:
It’s in a page bundle, I have a _index.md 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 index.md.
_index.md 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:
|- test.md
|- image.png
test.md does not define a Page Bundle.
As you found out renaming test.md to index.md fixed the issue.
Also in the future please post the solution in full.
Others might find it helpful.