In 0.17 I had the working code at \layouts\taxonomy\author.html
{{ range (index $.Site.Taxonomies.authors .Title).Pages }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle}}</a></li>
{{ end }}
The example I took there .
In Hugo 0.17 it generate this list , but in 0.18 it generate nothing.
{{ printf “%S” .Title }} show correct value, as in FM.
bep
January 9, 2017, 9:38am
2
Have you tested Hugo 0.18.1?
Yes of course, I meant 0.18.1
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-30T10:03:28+03:00
bep
January 9, 2017, 11:30am
5
Create an GH issue for it. I assume you use preserveTaxonomyNames (or whatever); I’m pretty sure this was fixed in 0.18.1 – so double check that.
I think I solved the problem. Working code:
{{ $ltitle := (replaceRE "( |–)" "-" (lower .Title)) }}
{{ range (index $.Site.Taxonomies.authors $ltitle).Pages }}
urlize
does not work in this case because from FM authors: [ "Андреев Леонид" ]
generate string %D0%B0%D0%BD%D0%B4%D1%80%D0%B5%D0%B5%D0%B2-%D0%BB%D0%B5%D0%BE%D0%BD%D0%B8%D0%B4
Also working code:
{{ range ($.Site.Taxonomies.authors.Get .Title).Pages }}
Taken from there .
In Hugo 0.19 this string has stopped working.