close #37: remove the deprecated preserveTaxonomyNames = true, and use .Page.Title to get the taxonomy names instead
2 files changed, 2 insertions(+), 6 deletions(-)
changed files
M exampleSite/config.toml → exampleSite/config.toml
@@ -5,7 +5,6 @@ theme = "hugo-xmin" googleAnalytics = "" disqusShortname = "" ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"] -preserveTaxonomyNames = true footnotereturnlinkcontents = "↩" [permalinks]
M layouts/_default/terms.html → layouts/_default/terms.html
@@ -3,12 +3,9 @@ <h1>{{ .Title }}</h1> <ul class="terms"> - {{ range $key, $value := .Data.Terms }} + {{ range .Data.Terms }} <li> - <a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}"> - {{ $key }} - </a> - ({{ len $value }}) + <a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }}) </li> {{ end }} </ul>