sort tags everywhere

This commit is contained in:
Gabriele Musco 2021-06-16 11:08:07 +02:00
parent 6f8e3cfdb4
commit 165081d97d
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
8 changed files with 15 additions and 13 deletions

View file

@ -6,10 +6,10 @@
<p class="date">
<span title="Date"></span>
{{ .Date.Format "2006-01-02" }}
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
| <!-- Pipe character as visual separator between date and tags-->
<span title="Tags"></span>
{{ range .Params.tags }}
{{ range sort .Params.tags }}
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
{{ end }}