{{ 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 }}
{{ 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 }}