7
0
Fork 0

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

@ -1,5 +1,5 @@
---
author: "Michael Boelen"
author: michael-boelen
categories:
- nieuws
date: 2023-05-06T13:08:32+02:00

View file

@ -1,5 +1,5 @@
---
author: Patrick Reijnen
author: patrick-reijnen
categories:
- nieuws
date: 2023-05-12T14:56:33+02:00

View file

@ -1,5 +1,5 @@
---
author: "Michael Boelen"
author: michael-boelen
categories:
- nieuws
date: 2023-05-17T14:56:33+02:00

View file

@ -1,5 +1,5 @@
---
author: Michael Boelen
author: michael-boelen
categories:
- nieuws
date: 2023-05-22T21:06:43+02:00

View file

@ -0,0 +1,2 @@
name: Michael Boelen
email: michael@nluug.nl

View file

@ -0,0 +1,2 @@
name: Patrick Reijnen
email: patrick@nluug.nl

View file

@ -18,7 +18,12 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Content | plainify }}</description>
<author>{{ .Params.Author | default $author }}</author>
{{- if .Params.Author -}}
{{- $author := index .Site.Data.authors .Params.author -}}
<author>{{ $author.email }}</author>
{{- else -}}
<author>website@nluug.nl</author>
{{- end -}}
<guid>{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
</item>

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 }}