close #37: remove the deprecated preserveTaxonomyNames = true, and use .Page.Title to get the taxonomy names instead

This commit is contained in:
Yihui Xie 2019-04-18 13:54:08 -05:00
parent d7e19b268c
commit 91d31b38fb
2 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,6 @@ theme = "hugo-xmin"
googleAnalytics = "" googleAnalytics = ""
disqusShortname = "" disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"] ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩" footnotereturnlinkcontents = "↩"
[permalinks] [permalinks]

View File

@ -3,12 +3,9 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<ul class="terms"> <ul class="terms">
{{ range $key, $value := .Data.Terms }} {{ range .Data.Terms }}
<li> <li>
<a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}"> <a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
{{ $key }}
</a>
({{ len $value }})
</li> </li>
{{ end }} {{ end }}
</ul> </ul>