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

37 lines
1.0 KiB
HTML
Raw Normal View History

2021-10-23 22:20:01 +02:00
{{ define "title" }}
{{ end }}
{{ 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 }}
{{ partial "single/article" . }}
{{ end }}
2021-10-23 22:20:01 +02:00
{{ end }}
2022-04-03 21:08:42 +02:00
{{ define "ab" }}
<div id="article_footer">
{{ if .IsTranslated }}
<div style="flex-grow: 0; flex-direction: column; margin-right: 1rem;">
<b>{{ "Translations" }}</b>
{{ range .Translations }}
<li style="list-style: none; text-decoration: none; font-size: x-small; color: var(--text-muted);">
<a href="{{ .Permalink }}" class="underline">{{ T .Lang }}</a>
</li>
{{ end }}
</div>
{{ end }}
<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 }}