"img" shortcode doesn't work #555
-
I can't get the "img" shortcode to diplay my images, and I don't get any build errors/warnings. What I've tried:
Also, I see in the exampleSite there are two related files:
Should I have them in my project? Anyway, I tried this and didn't work too. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Not sure what you tried already but the usage of the |
Beta Was this translation helpful? Give feedback.
-
Yes, that's the guide I followed. I have this file structure:
My header looks like this:
And I use the shortcode as follows:
But the image is not being displayed. Am I missing something? |
Beta Was this translation helpful? Give feedback.
The documentation links https://gohugo.io/content-management/page-resources/
The recommended structure would be (also see https://github.com/thegeeklab/hugo-geekblog/tree/main/exampleSite/content/posts/post-with-images):