diff options
author | Derek Severin <severinderek@gmail.com> | 2019-01-02 17:28:44 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-01-02 17:28:44 +0300 |
commit | 8130c5b742dd211aeff148b5d9d01efe255b014d (patch) | |
tree | a65474db9f74a0ba061d29de15a1e69f8c3fcf26 /layouts/partials/utils | |
parent | a2e5a409d85f255ab029788db1ad5118bb707305 (diff) |
Small bug fix - test that list to sort is not empty
Diffstat (limited to 'layouts/partials/utils')
-rw-r--r-- | layouts/partials/utils/get-keywords.html | 2 |
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 }} |