I came here looking for help trying add some images to the space next to the story itself. I have managed to get the
index.md in the
content/posts/post-name directory working as it were a
But the documentation pages https://gohugo.io/content-management/page-bundles/ and https://gohugo.io/content-management/page-resources/ are totally unclear to someone pretty new to hugo - listing the “resources” in the front matter does not seem to do much by itself. I think they serve as a kind of reference information for those who are much deeper into this.
A theme I am using hugo-cards theme displays the image pointed to by
img in the front matter in the page listing. How do I tell that
img is one of my page resources?
--- title: "My post" date: 2019-11-22T21:00:00Z draft: true resources: - src: 'frontimage.jpeg' name: 'img' ---
I think this is totally “wrong” but how do I achieve this with page resources?
In the plain post the following works:
--- title: "My post" date: 2019-11-22T21:00:00Z draft: true img: frontimage.jpeg ---
but then the image must to come from the “global pool” - in my case this is simply