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>2019-01-02 17:28:44 +0300
committerDerek Severin <severinderek@gmail.com>2019-01-02 17:28:44 +0300
commit8130c5b742dd211aeff148b5d9d01efe255b014d (patch)
treea65474db9f74a0ba061d29de15a1e69f8c3fcf26
parenta2e5a409d85f255ab029788db1ad5118bb707305 (diff)
Small bug fix - test that list to sort is not empty
-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 e2899d3..d10c6fc 100644
--- a/layouts/partials/utils/get-keywords.html
+++ b/layouts/partials/utils/get-keywords.html
@@ -35,4 +35,6 @@
{{ .scratch.Set .type (uniq (.scratch.Get .type)) }}
{{ end }}
+{{ if (.scratch.Get .type) }}
{{ .scratch.Set .type (sort (.scratch.Get .type)) }}
+{{ end }}