Hi, I’m trying to show custom metadata for a Term, as by doc here and here.
I created _index.md for the term “helsingfors” in this folder:
/content/tags/helsingfors/
with the content
---
title: "Helsingfors"
wikipedia: "https://sv.wikipedia.org/wiki/Helsingfors"
---
I have in terms.html (in /themes/hugo-xmag/layouts/_default/terms.html) added {{.Params.wikipedia}}, like so:
<ul>
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ (print "/" $.Data.Plural "/" $key) | relURL }}">
{{ $key }}
</a>
({{ len $value }}) {{ .Params.wikipedia }}
</li>
{{ end }}
</ul>
but this leads to an error. What would be the correct way to access the metadata for term? Thank you for help!