Ensure tags are sorted alphabetically
This commit is contained in:
parent
9965de16a5
commit
615e3113e7
2 changed files with 5 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
<a href="{{ ref . "/tags" }}" class="no-color-change mr-1" title="Tags">
|
<a href="{{ ref . "/tags" }}" class="no-color-change mr-1" title="Tags">
|
||||||
<i class="fas fa-tags small"></i>
|
<i class="fas fa-tags small"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ range $i, $e := .Params.tags }}
|
{{ range (.Params.tags | sort) }}
|
||||||
<a href="/tags/{{ urlize . }}" class="mr-1" title="{{ . }}">#{{ . }}</a>
|
<a href="/tags/{{ urlize . }}" class="mr-1" title="{{ . }}">#{{ . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -59,8 +59,10 @@
|
||||||
<meta name="author" content="{{ title .Site.Params.author }}" />
|
<meta name="author" content="{{ title .Site.Params.author }}" />
|
||||||
<meta name="canonical" content="{{ .Permalink }}" />
|
<meta name="canonical" content="{{ .Permalink }}" />
|
||||||
|
|
||||||
{{ range .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
<meta property="article:tag" content="{{ . }}" />
|
{{ range (.Params.tags | sort) }}
|
||||||
|
<meta property="article:tag" content="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .AlternativeOutputFormats }}
|
{{ range .AlternativeOutputFormats }}
|
||||||
|
|
Loading…
Reference in a new issue