Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2018-10-15 16:26:14 +0300
committerDerek Severin <severinderek@gmail.com>2018-10-15 16:26:14 +0300
commitf5882a9d6331be9ef8ac29927e8474b3313c669e (patch)
treed2ae09a1fee70244562ee2a79676d97ae2c65184
parent2715ad6dd59d0307cb6fa48ba556085e9efa4f1e (diff)
get-keywords: Added sorting on alphanumerical value (hardcoded, should allow to specify on what to sort)
-rw-r--r--layouts/partials/utils/get-keywords.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/utils/get-keywords.html b/layouts/partials/utils/get-keywords.html
index cbfa8e6..e2899d3 100644
--- a/layouts/partials/utils/get-keywords.html
+++ b/layouts/partials/utils/get-keywords.html
@@ -34,3 +34,5 @@
{{ if .removeDuplicates }}
{{ .scratch.Set .type (uniq (.scratch.Get .type)) }}
{{ end }}
+
+{{ .scratch.Set .type (sort (.scratch.Get .type)) }}