mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-25 17:59:19 +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
|
@ -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]
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue