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-06 02:39:08 +02:00
|
|
|
{{ if eq .Type "tools" }}
|
2022-04-06 00:02:18 +02:00
|
|
|
<article>
|
2022-04-06 02:39:08 +02:00
|
|
|
{{ $tool := printf "misc/%s" .Params.tool }}
|
|
|
|
{{ partial $tool . }}
|
2022-04-06 00:02:18 +02:00
|
|
|
</article>
|
2022-04-03 01:27:41 +02:00
|
|
|
{{ 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-06 00:02:18 +02:00
|
|
|
{{ if ne .Section "misc" }}
|
2022-04-04 00:42:08 +02:00
|
|
|
<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-06 17:51:02 +02:00
|
|
|
{{ if ne .Type "tools" }}
|
|
|
|
{{- partial "contentlayouts/menu.html" . }}
|
|
|
|
{{ end }}
|
2022-04-04 01:13:42 +02:00
|
|
|
{{ end }}
|