diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index e9317f4..bf1793b 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -9,15 +9,15 @@
{{ with $date := .Date }}
{{ partial "utils/format-date" $date }}
- {{- if $.Params.authors }} by {{ end -}}
- {{- with $.Params.authors }}
+ {{- if $.Params.authors }} by {{ end -}}
+ {{- with $.Params.authors -}}
{{- range $i, $author := . -}}
{{- if $i }},{{ end -}}
- {{- if $author.link }}
+ {{- if $author.link -}}
{{ $author.name }}
- {{ else }}
+ {{- else -}}
{{ $author.name }}
- {{ end -}}
+ {{- end -}}
{{- end -}}
{{- end -}}
@@ -25,7 +25,8 @@