bunteshaus.de/themes/buha/layouts/_default/single.html

43 lines
1018 B
HTML
Raw Normal View History

2022-04-05 20:58:02 +02:00
{{ define "title" }}
{{ $name := .Title }}
{{ if lower $name | i18n }}
{{ $name = lower $name | i18n }}
{{ end }}
<h1>{{ $name }}</h1>
{{ end }}
2022-04-05 17:50:09 +02:00
2021-10-23 22:20:01 +02:00
{{ define "main" }}
2022-04-03 01:27:41 +02:00
{{ if eq .Description "nottranslated" }}
{{ partial "orga/nottranslated.html" . }}
{{ else if eq .Description "generator" }}
{{ partial "orga/generator.html" . }}
{{ else }}
2022-04-05 20:58:02 +02:00
<article>
{{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }}
</article>
2022-04-03 01:27:41 +02:00
{{ end }}
2021-10-23 22:20:01 +02:00
{{ end }}
2022-04-03 21:08:42 +02:00
{{ define "ab" }}
2022-04-04 00:42:08 +02:00
{{ if ne .Section "orga" }}
<div id="article_footer">
2022-04-03 21:08:42 +02:00
<div style="flex-grow: 1; flex-direction: column;">
2022-04-04 00:42:08 +02:00
<b>Verfasst am</b><br>
{{ .Date | time.Format ":date_full" }}
2022-04-03 21:08:42 +02:00
</div>
2022-04-04 00:42:08 +02:00
{{ 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 }}
2022-04-04 01:13:42 +02:00
{{ define "sidebar" }}
2022-04-05 20:58:02 +02:00
{{- partial "contentlayouts/menu.html" . }}
2022-04-04 01:13:42 +02:00
{{ end }}