diff options
author | Yihui Xie | 2019-04-18 13:54:08 -0500 |
---|---|---|
committer | Yihui Xie | 2019-04-18 13:54:08 -0500 |
commit | 91d31b38fb83b2305aa7dab11ba13ba33f600f58 (patch) | |
tree | f852e05c30d5cebf4467ec996669383d3fd83b49 /layouts | |
parent | d7e19b268c311759dc7edae9916774521ef1b2f8 (diff) | |
download | hugo-xmin-91d31b38fb83b2305aa7dab11ba13ba33f600f58.tar.lz hugo-xmin-91d31b38fb83b2305aa7dab11ba13ba33f600f58.tar.zst hugo-xmin-91d31b38fb83b2305aa7dab11ba13ba33f600f58.zip |
close #37: remove the deprecated preserveTaxonomyNames = true, and use .Page.Title to get the taxonomy names instead
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/terms.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 09b3785..1b515a5 100644 --- a/layouts/_default/terms.html +++ b/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> |