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

32 lines
830 B
HTML
Raw Normal View History

2022-04-08 12:04:46 +02:00
{{- define "title" -}}
{{ $name := .Name | lower }}
{{ if ne ($name | i18n) "" }}
{{ $name = $name | i18n }}
{{ else }}
{{ if and (ne .Section "events") (ne .Section "links") }}
{{ $name = $name | singularize }}
{{ end }}
{{ $name = $name | humanize }}
{{ end }}
<h1>{{ $name }}</h1>
{{- end -}}
{{- define "main" -}}
{{ if ne .Content "" }}
2022-04-08 13:22:50 +02:00
<article style="margin-bottom: 0; margin-top: 0;">
2022-04-08 12:04:46 +02:00
{{ .Content }}
</article>
2022-04-08 13:22:50 +02:00
{{ end }}<br>
2022-04-08 12:04:46 +02:00
{{ range .Pages }}
2022-04-08 13:22:50 +02:00
<article style="margin-bottom: 0; margin-top: 0;">
2022-04-08 12:04:46 +02:00
<h3><a href="{{ .Params.link }}">{{ .Params.link }}</a></h3>
2022-04-08 13:22:50 +02:00
{{ .Title }}
2022-04-08 12:04:46 +02:00
{{ .Content }}
2022-04-08 13:22:50 +02:00
</article>
2022-04-08 12:04:46 +02:00
{{ end }}
{{- end -}}
{{ define "sidebar" }}
{{- partial "contentlayouts/menu.html" . }}
{{ end }}