jlelse
/
Indieroad
Archived
1
Fork 0

Add counter for tags

This commit is contained in:
Jan-Lukas Else 2020-04-13 10:29:38 +02:00
parent 32a0c2f2bf
commit b1501e1954
2 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@
<div class="tags">
<ul class="tags-list">
{{ range (.GetTerms "series") }}
<li class="tag-item"><a class="tag-link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
<li class="tag-item"><a class="tag-link" href="{{ .RelPermalink }}">{{ .Title }}<sup>{{ len .Pages }}</sup></a></li>
{{ end }}
{{ range (.GetTerms "tags") }}
<li class="tag-item"><a class="tag-link p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}</a></li>
<li class="tag-item"><a class="tag-link p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}<sup>{{ len .Pages }}</sup></a></li>
{{ end }}
</ul>
</div>

View File

@ -8,7 +8,7 @@
<div class="tags">
<ul class="tags-list">
{{ range (.Paginate ( .Pages.ByTitle ) 100).Pages }}
<li class="tag-item"><a class="tag-link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
<li class="tag-item"><a class="tag-link" href="{{ .RelPermalink }}">{{ .Title }}<sup>{{ len .Pages }}</sup></a></li>
{{ end }}
</ul>
</div>