mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-25 14:43:32 +02:00
close #37: remove the deprecated preserveTaxonomyNames = true, and use .Page.Title to get the taxonomy names instead
This commit is contained in:
parent
d7e19b268c
commit
91d31b38fb
2 changed files with 2 additions and 6 deletions
|
@ -5,7 +5,6 @@ theme = "hugo-xmin"
|
|||
googleAnalytics = ""
|
||||
disqusShortname = ""
|
||||
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
|
||||
preserveTaxonomyNames = true
|
||||
footnotereturnlinkcontents = "↩"
|
||||
|
||||
[permalinks]
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue