Corrigeren ondersteuning voor auteurs, zodat we atom-feed kunnen voorzien van emailadressen en nieuwsberichten van naam

This commit is contained in:
Michael Boelen 2023-05-23 14:50:25 +02:00
parent 235d9d48a0
commit f8d7dd908c
8 changed files with 21 additions and 6 deletions

View file

@ -4,7 +4,13 @@
{{ $text := .Content }}
{{ $date := .Date.Format "02-01-2006" }}
{{ $lastmod := .Lastmod.Format "02-01-2006" }}
<small>Gepubliceerd op {{ $date }} door {{ .Params.author | default .Site.Params.author }}.{{ if gt .Params.lastmod .Params.date }} Artikel bijgewerkt op {{ $lastmod }}{{ end }}</small>
{{ if isset .Params "author" }}
{{ $author := index .Site.Data.authors .Params.author }}
<small>Gepubliceerd op {{ $date }} door {{ $author.name }}.{{ if gt .Params.lastmod .Params.date }} Artikel bijgewerkt op {{ $lastmod }}{{ end }}</small>
{{ else }}
{{ $author := .Site.Params.author }}
<small>Gepubliceerd op {{ $date }} door {{ .Site.Params.author }}.{{ if gt .Params.lastmod .Params.date }} Artikel bijgewerkt op {{ $lastmod }}{{ end }}</small>
{{ end }}
<section>
{{ $text }}
{{ if .Params.signed_by }}<em>{{ .Params.signed_by }}</em>{{ end }}