Error: Error building site: failed to render pages: render of "page" failed: "/home/laythos/repository/spielwiese.hg/themes/GythaOgg/layouts/_default/single.html:12:9": execute of template failed: template: _default/single.html:12:9: executing "main" at <partial "taxonomy.html" .>: error calling partial: "/home/laythos/repository/spielwiese.hg/themes/GythaOgg/layouts/partials/taxonomy.html:14:35": execute of template failed: template: partials/taxonomy.html:14:35: executing "partials/taxonomy.html" at <.Params.tags>: range can't iterate over Cache
All the other tags I have used have worked fine so far.
Is the problem with my theme? If so, what am I doing wrong? Or is this a bug in Hugo?
In this case, I didn’t use the dash at all. And that during countless attempts. In my mother tongue there is a saying that you can’t see the wood for the trees.
I have now solved it as follows.
<div class="article-tag">
{{ range $k, $v := .GetTerms "tags" }}
{{- if $k }} | {{ end }}
<a href="{{ .RelPermalink }}" rel="tag">{{ .LinkTitle }}</a>
{{- end }}
</div>