Skip to content

Commit

Permalink
close #37: remove the deprecated preserveTaxonomyNames = true, and us…
Browse files Browse the repository at this point in the history
…e .Page.Title to get the taxonomy names instead
  • Loading branch information
yihui committed Apr 18, 2019
1 parent d7e19b2 commit 91d31b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ theme = "hugo-xmin"
googleAnalytics = ""
disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = ""

[permalinks]
Expand Down
7 changes: 2 additions & 5 deletions layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 91d31b3

Please sign in to comment.