Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.
Hello Joe,
I will try to create it again as a minimal example … but that takes some time
some more context:
the markdown/figure is used in a _index.md file (not a index.md if that would make a difference?)
the code is executed within a figure.html / shortcode (which is all the same like the default figure shortcode
but tries to get a image by {{- $img := .Page.Resources.GetMatch (.Get "src") -}} at the top to get information like $img.Height and being able to do $img.Resize )
Without the Resources functionality the shortcode works like expected
(- but it uses the figure attributes, only)
What I noticed is that within the shortcode there seems to be no access to the page resources/context/content
how to passthru the page context into the figure shortcode?