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 = ""
disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩"
[permalinks]

View File

@ -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>