diff --git a/layouts/post/list.html b/layouts/post/list.html index 824b995..b88bdd9 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -10,9 +10,20 @@
{{ .Title }}

{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }} - - {{ .Params.author | default .Site.Params.author }} - + {{ if .Params.authors }} + {{ $s := newScratch }} + {{ $s.Set "len" (len .Params.authors) }} + {{ $s.Add "len" -1 }} + {{ range $idx, $author := .Params.authors -}} + + {{ $author | default $.Site.Params.author }} + {{ if ne $idx ($s.Get "len") }}, {{end}} + {{- end }} + {{ else }} + + {{ .Params.author | default .Site.Params.author }} + + {{ end }}

diff --git a/layouts/post/single.html b/layouts/post/single.html index 69ad353..851a5e5 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -13,9 +13,20 @@ {{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }} - - {{ .Params.author | default .Site.Params.author }} - + {{ if .Params.authors }} + {{ $s := newScratch }} + {{ $s.Set "len" (len .Params.authors) }} + {{ $s.Add "len" -1 }} + {{ range $idx, $author := .Params.authors -}} + + {{ $author | default $.Site.Params.author }} + {{ if ne $idx ($s.Get "len") }}, {{end}} + {{- end }} + {{ else }} + + {{ .Params.author | default .Site.Params.author }} + + {{ end }}

diff --git a/src/main.scss b/src/main.scss index 5a258cc..dcbab06 100644 --- a/src/main.scss +++ b/src/main.scss @@ -45,6 +45,10 @@ $tertiary: #4183c4; } } +a.author { + display: inline-block !important; +} + .page .card{ margin-bottom: 2em;