From 41bbdaa2cc49c9e35febacf0a69e4ab240f6c4cb Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Wed, 31 Mar 2021 10:02:22 -0700 Subject: [PATCH] Remove space before comma in authors list --- layouts/blog/list.html | 8 ++++---- layouts/partials/header.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 6f53037a94..128b9e98d2 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -14,12 +14,12 @@ {{ if isset .Params "authors" }} By {{- range $index, $author := .Params.authors }} - {{- with $.Site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .)) }} - {{ if gt $index 0 }} + {{- with $.Site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .)) -}} + {{- if gt $index 0 -}} , - {{ end }} + {{- end -}} {{ .Params.name }} - {{ end }} + {{- end -}} {{ end }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 427face8ea..d4d33919c4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -102,12 +102,12 @@ {{ if isset .Params "authors" }} By {{- range $index, $author := .Params.authors }} - {{- with $.Site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .)) }} - {{ if gt $index 0 }} + {{- with $.Site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .)) -}} + {{- if gt $index 0 -}} , - {{ end }} + {{- end -}} {{ .Params.name }} - {{ end }} + {{- end -}} {{ end }} {{ end }} {{ else }} -- 2.49.0