From b77fe7793292c6d1285a75827e4e34404270d69e Mon Sep 17 00:00:00 2001 From: Frank Tegtmeyer Date: Fri, 2 Feb 2018 11:56:19 +0100 Subject: [PATCH] Configurable keywords for blog posts. --- layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f7b6c45..9bd3ac7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -39,9 +39,9 @@ "@type": "Person", "name": "{{ .Params.author | default .Site.Params.author }}" } - {{- if or (.Params.categories) (.Params.tags) -}} + {{- if or (.Params.keywords) (or (.Params.categories) (.Params.tags)) -}} , - "keywords": "{{ delimit (union .Params.categories .Params.tags) ", " }}" + "keywords": "{{ delimit (union .Params.keywords (union .Params.categories .Params.tags)) ", " }}" {{- end }} {{- with .Params.description -}}