Skip to content

Commit

Permalink
修正Netlify编译报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Topologies committed Jun 18, 2020
1 parent 09d1445 commit 0bbd024
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions themes/hugo-xmin/layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
<h1>{{ .Title }}</h1>

<ul class="terms">
{{ range .Data.Terms }}
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
<a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
{{ $key }}
</a>
({{ len $value }})
</li>
{{ end }}
</ul>
Expand Down

0 comments on commit 0bbd024

Please sign in to comment.