Corrigeren ondersteuning voor auteurs, zodat we atom-feed kunnen voorzien van emailadressen en nieuwsberichten van naam
This commit is contained in:
parent
235d9d48a0
commit
f8d7dd908c
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
author: "Michael Boelen"
|
author: michael-boelen
|
||||||
categories:
|
categories:
|
||||||
- nieuws
|
- nieuws
|
||||||
date: 2023-05-06T13:08:32+02:00
|
date: 2023-05-06T13:08:32+02:00
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
author: Patrick Reijnen
|
author: patrick-reijnen
|
||||||
categories:
|
categories:
|
||||||
- nieuws
|
- nieuws
|
||||||
date: 2023-05-12T14:56:33+02:00
|
date: 2023-05-12T14:56:33+02:00
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
author: "Michael Boelen"
|
author: michael-boelen
|
||||||
categories:
|
categories:
|
||||||
- nieuws
|
- nieuws
|
||||||
date: 2023-05-17T14:56:33+02:00
|
date: 2023-05-17T14:56:33+02:00
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
author: Michael Boelen
|
author: michael-boelen
|
||||||
categories:
|
categories:
|
||||||
- nieuws
|
- nieuws
|
||||||
date: 2023-05-22T21:06:43+02:00
|
date: 2023-05-22T21:06:43+02:00
|
||||||
|
|
2
data/authors/michael-boelen.yaml
Normal file
2
data/authors/michael-boelen.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name: Michael Boelen
|
||||||
|
email: michael@nluug.nl
|
2
data/authors/patrick-reijnen.yaml
Normal file
2
data/authors/patrick-reijnen.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name: Patrick Reijnen
|
||||||
|
email: patrick@nluug.nl
|
|
@ -18,7 +18,12 @@
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>{{ .Content | plainify }}</description>
|
<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>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -4,7 +4,13 @@
|
||||||
{{ $text := .Content }}
|
{{ $text := .Content }}
|
||||||
{{ $date := .Date.Format "02-01-2006" }}
|
{{ $date := .Date.Format "02-01-2006" }}
|
||||||
{{ $lastmod := .Lastmod.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>
|
<section>
|
||||||
{{ $text }}
|
{{ $text }}
|
||||||
{{ if .Params.signed_by }}<em>{{ .Params.signed_by }}</em>{{ end }}
|
{{ if .Params.signed_by }}<em>{{ .Params.signed_by }}</em>{{ end }}
|
||||||
|
|
Reference in a new issue