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

55 lines
1.4 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" }}
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" }}
{{- 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 20:47:14 +02:00
{{ $s := .Site.Params }}
{{ if .Translations }}
<h3>{{ "Languages" }}</h3>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}
2022-04-04 01:13:42 +02:00
{{ end }}