From 6fa26ea4b3c676e82fa59cde577aab1833673909 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 24 Jan 2023 23:39:44 -0600 Subject: [PATCH] feat: multiple authors Signed-off-by: jolheiser --- layouts/post/list.html | 4 ++-- layouts/post/single.html | 4 ++-- src/main.scss | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) 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; } }