From 27c0a5c0f448cc2b8f4b601990a91309766b1c7c Mon Sep 17 00:00:00 2001 From: rra Date: Tue, 24 May 2022 10:02:14 +0200 Subject: [PATCH] Turn 'authors' in to a taxonomy item --- config.toml | 5 +++++ themes/lumbung-theme/layouts/partials/network_card.html | 2 +- themes/lumbung-theme/layouts/partials/shout_card.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index ab90352..ab2f84e 100644 --- a/config.toml +++ b/config.toml @@ -13,3 +13,8 @@ pluralizeListTitles = "false" [markup.goldmark.renderer] unsafe = true + +[taxonomies] + author = "authors" + tag = "tags" + category = "categories" diff --git a/themes/lumbung-theme/layouts/partials/network_card.html b/themes/lumbung-theme/layouts/partials/network_card.html index 6243386..27de0d7 100644 --- a/themes/lumbung-theme/layouts/partials/network_card.html +++ b/themes/lumbung-theme/layouts/partials/network_card.html @@ -7,7 +7,7 @@ -
From {{ if .Params.author }}{{.Params.author}} at {{ end }}{{ .Params.feed_name }}
+
From {{ if .Params.authors }}{{range .Params.authors}} {{.}} {{end}} at {{ end }}{{ .Params.feed_name }}
{{ with (index (.Resources.ByType "image") 0) }} {{ $height := add .Height 0.0}} {{ $ratio := div $height .Width}} diff --git a/themes/lumbung-theme/layouts/partials/shout_card.html b/themes/lumbung-theme/layouts/partials/shout_card.html index 55f46b6..af13173 100644 --- a/themes/lumbung-theme/layouts/partials/shout_card.html +++ b/themes/lumbung-theme/layouts/partials/shout_card.html @@ -29,7 +29,7 @@