From 8130c5b742dd211aeff148b5d9d01efe255b014d Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Wed, 2 Jan 2019 15:28:44 +0100 Subject: Small bug fix - test that list to sort is not empty --- layouts/partials/utils/get-keywords.html | 2 ++ 1 file changed, 2 insertions(+) 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 }} -- cgit v1.2.3