Hello,
I try to get a page parameter with a key index within a shortcode. My shortcode:
<span class="foo">{{- index .Page.Params.mysection ( .Get 0 ) -}}</span>
within my config.yml I have got
params:
mysection:
bar: "a long text"
within my markdown file I call the shortcode with
{{< myshortcode bar >}}
I expected in my HTML document, but I don’t get it
<span class="foo">a long text</span>
How can I run it in a correct way?
Thanks