]> Untitled Git - bitcoindevkit.org/commitdiff
Remove space before comma in authors list
authorSteve Myers <steve@notmandatory.org>
Wed, 31 Mar 2021 17:02:22 +0000 (10:02 -0700)
committerSteve Myers <steve@notmandatory.org>
Wed, 31 Mar 2021 17:12:20 +0000 (10:12 -0700)
layouts/blog/list.html
layouts/partials/header.html

index 6f53037a94f0585b29a4cc313e1d7008e2323a80..128b9e98d2ab119e634c2c507e59083eb3f6a695 100644 (file)
             {{ if isset .Params "authors" }}
                 <span>By </span>
                 {{- 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 -}}
                       <span>, </span>
-                    {{ end }}
+                    {{- end -}}
                     <span><a href="{{ "/authors/" | relLangURL }}{{ .Params.name | urlize }}">{{ .Params.name }}</a></span>
-                  {{ end }}
+                  {{- end -}}
                 {{ end }}
             {{ end }}
 
index 427face8ea90faa2b5d33f01b46e8ad3b8f809c9..d4d33919c450ba174835261b655c6d8f650d850a 100644 (file)
             {{ if isset .Params "authors" }}
                 <span class="blog-author">By </span>
                 {{- 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 -}}
                       <span class="blog-author">, </span>
-                    {{ end }}
+                    {{- end -}}
                     <span class="blog-author"><a href="{{ "/authors/" | relLangURL }}{{ .Params.name | urlize }}">{{ .Params.name }}</a></span>
-                  {{ end }}
+                  {{- end -}}
                 {{ end }}
             {{ end }}
             {{ else }}