forked from Bunteshaus/bunteshaus.de
49 lines
1.1 KiB
HTML
49 lines
1.1 KiB
HTML
{{ define "title" }}
|
|
{{ $name := .Title }}
|
|
{{ if lower $name | i18n }}
|
|
{{ $name = lower $name | i18n }}
|
|
{{ end }}
|
|
<h1>{{ $name }}</h1>
|
|
{{ end }}
|
|
|
|
|
|
{{ define "main" }}
|
|
{{ if eq .Type "tools" }}
|
|
{{ $tool := printf "misc/%s" .Params.tool }}
|
|
{{ partial $tool . }}
|
|
{{ end }}
|
|
{{ if eq .Params.tool "not_translated" }}
|
|
<article>
|
|
{{ partial "misc/nottranslated.html" . }}
|
|
</article>
|
|
{{ else if eq .Params.tool "generator" }}
|
|
{{ partial "misc/generator.html" . }}
|
|
{{ else }}
|
|
<article>
|
|
{{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }}
|
|
</article>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "ab" }}
|
|
{{ if ne .Section "misc" }}
|
|
<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 }}
|