Skip to content

"img" shortcode doesn't work #555

Answered by xoxys
luispaulomr asked this question in Q&A
Jul 22, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

The documentation links https://gohugo.io/content-management/page-resources/

Page resources are only accessible from page bundles, those directories with index.md or _index.md files at their root. Page resources are only available to the page with which they are bundled.

The recommended structure would be (also see https://github.com/thegeeklab/hugo-geekblog/tree/main/exampleSite/content/posts/post-with-images):

posts/
└───my-post/
    └───index.md
    └───images/
        └───first.png

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by xoxys
@luispaulomr
Comment options

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
Converted from issue

This discussion was converted from issue #554 on July 22, 2024 13:11.