From 2dd72d7ec19c061ceef263e78d582ff7b8fc3aac Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 7 Jul 2017 16:29:59 +0300 Subject: [PATCH] layouts/_default/single.html: Improve Schema.org keywords Use delimit function over a union of Categories and Tags. This is much easier to read, results in correct delimiting with no trailing comma, and works even if one of the slices is nil. --- layouts/_default/single.html | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c7ecb8d..f7b6c45 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,7 +41,6 @@ } {{- if or (.Params.categories) (.Params.tags) -}} , - {{- /* delimit keywords by comma, even if one of .Params.categories or Params.tags is nil */ -}} "keywords": "{{ delimit (union .Params.categories .Params.tags) ", " }}" {{- end }}