This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/posts/news.html

28 lines
1.1 KiB
HTML
Raw Permalink Normal View History

{{ 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 }}
{{ if .Params.related_persons }}
{{ .Scratch.Set "related_members" .Params.related_persons }}
{{ partial "show-related-members.html" . }}
{{ end }}
{{ end }}