I want to access one image, which i define in my .md file.
So my structure is the following:
content/page/somename
This has an _index.md and a subfolder images with the content
mainimage.jpg
someotherimage.jpg
Now i want to define in my frontmatter my image.
Which path do i need to give my frontmatter variable “mainimage” to access my mainimage.jpg from the images folder?
I tried it with that:
mainImage: “/images/mainimage.jpg”
But as soon as i try to access it via the following:
{{ $path := .Params.mainImage }}
{{ $thumb := resources.Get $path }} I will get an error