diff --git a/layouts/post/list.html b/layouts/post/list.html index 9b14304..b88bdd9 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -15,12 +15,12 @@ {{ $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 fd36fff..851a5e5 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -18,12 +18,12 @@ {{ $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 81f83d3..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; @@ -57,7 +61,7 @@ $tertiary: #4183c4; border-radius: 0.2em; .media-content a{ - display: inline-block; + display: block; } }