sort tags everywhere
This commit is contained in:
parent
6f8e3cfdb4
commit
165081d97d
8 changed files with 15 additions and 13 deletions
|
|
@ -6,7 +6,7 @@
|
|||
{{ $mscratch.Add "articles" (dict
|
||||
"title" .Title
|
||||
"date" (.Date.Format "2006-01-02")
|
||||
"tags" (or .Params.tags slice)
|
||||
"tags" (sort (or .Params.tags slice))
|
||||
"summary" .Summary
|
||||
"text" (lower .Plain)
|
||||
"link" .Permalink
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<p class="articleTagsContainer">
|
||||
<span> </span>
|
||||
<strong>Tags:</strong>
|
||||
{{ range .Params.tags }}
|
||||
{{ range sort .Params.tags }}
|
||||
<a
|
||||
{{ if site.Params.discreteTags | default false }}
|
||||
class="discreteTag"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue