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

46 lines
1.2 KiB
HTML
Raw Normal View History

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 }}
{{ partial "single/article" . }}
{{ 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-04 21:26:28 +02:00
<section class="sidebar_inner">
2022-04-04 01:13:42 +02:00
{{- if .Params.tags -}}
<h3>{{ T "tags" }}</h3>
<div class="tags-list" style="display: flex; flex-direction: column;">
{{- with .Params.tags -}}
{{- if ge (len .) 1 -}}
{{- range . -}}
2022-04-04 20:37:30 +02:00
<a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}/">#{{ . }}</a>
2022-04-04 01:13:42 +02:00
{{ end -}}
{{- end -}}
{{- end -}}
</div>
{{ end }}
2022-04-04 21:26:28 +02:00
{{ partial "structure/langs" . }}
</section>
2022-04-04 01:13:42 +02:00
{{ end }}