Turn 'authors' in to a taxonomy item

This commit is contained in:
rra 2022-05-24 10:02:14 +02:00
parent 79f4f4a87f
commit 27c0a5c0f4
3 changed files with 7 additions and 2 deletions

View File

@ -13,3 +13,8 @@ pluralizeListTitles = "false"
[markup.goldmark.renderer]
unsafe = true
[taxonomies]
author = "authors"
tag = "tags"
category = "categories"

View File

@ -7,7 +7,7 @@
</header>
<div class="network-source"><span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
<div class="network-source"><span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} {{.}} {{end}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
{{ with (index (.Resources.ByType "image") 0) }}
{{ $height := add .Height 0.0}}
{{ $ratio := div $height .Width}}

View File

@ -29,7 +29,7 @@
<footer class='post-footer'>
<div class='footer-metadata'>
<span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> on{{ end }}</span>
<span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} {{.}} {{end}}</b> on{{ end }}</span>
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
</div>
{{ if .Truncated }}