bunteshaus.de/themes/buha/layouts/_default/single.html
2022-04-05 20:58:02 +02:00

43 lines
1018 B
HTML

{{ define "title" }}
{{ $name := .Title }}
{{ if lower $name | i18n }}
{{ $name = lower $name | i18n }}
{{ end }}
<h1>{{ $name }}</h1>
{{ end }}
{{ define "main" }}
{{ if eq .Description "nottranslated" }}
{{ partial "orga/nottranslated.html" . }}
{{ else if eq .Description "generator" }}
{{ partial "orga/generator.html" . }}
{{ else }}
<article>
{{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }}
</article>
{{ end }}
{{ end }}
{{ define "ab" }}
{{ if ne .Section "orga" }}
<div id="article_footer">
<div style="flex-grow: 1; flex-direction: column;">
<b>Verfasst am</b><br>
{{ .Date | time.Format ":date_full" }}
</div>
{{ if ne .Date .Lastmod }}
<div style="flex-grow: 1; flex-direction: column;">
<b>zuletzt geändert</b><br>
{{ .Lastmod | time.Format ":date_full" }}
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
{{ define "sidebar" }}
{{- partial "contentlayouts/menu.html" . }}
{{ end }}