From: Steve Myers Date: Wed, 31 Mar 2021 17:02:22 +0000 (-0700) Subject: Remove space before comma in authors list X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/enum.NewError.html?a=commitdiff_plain;h=41bbdaa2cc49c9e35febacf0a69e4ab240f6c4cb;p=bitcoindevkit.org Remove space before comma in authors list --- 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 }}