7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/posts/news.html

24 lines
932 B
HTML

{{ define "main" }}
{{ $icon_size := 20 }}
{{ $text := .Content }}
{{ $date := .Date.Format "02-01-2006" }}
{{ $lastmod := .Lastmod.Format "02-01-2006" }}
{{ 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 }}
</section>
{{ if .Params.related_members }}
{{ .Scratch.Set "related_members" .Params.related_members }}
{{ partial "show-related-members.html" . }}
{{ end }}
{{ end }}