Adding images to your doc posts #207
-
I've tried having an image
My image is refered to in the doc post with
I've also tried the advice in this blog: https://snowgoons.ro/posts/2020-06-04-hugo-automated-image-processing/, so I have:
I still get the same nil pointer with this. It seems you can't use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
https://discourse.gohugo.io/t/how-to-access-resources-from-pages-within-a-branch-bundle/28772
so you have branch-bundle and the page-leaf-bundle |
Beta Was this translation helpful? Give feedback.
-
Yes that's correct. Interesting related article: Different ways to get an image as page resource in Hugo |
Beta Was this translation helpful? Give feedback.
https://discourse.gohugo.io/t/how-to-access-resources-from-pages-within-a-branch-bundle/28772
so you have
branch-bundle
......._index.md
.......page-leaf-bundle
....... ....... index.md
....... ....... image.png
and the page-leaf-bundle
index.md
can pick up the image.png!