forked from Bunteshaus/bunteshaus.de
32 lines
830 B
HTML
32 lines
830 B
HTML
{{- 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 "" }}
|
|
<article style="margin-bottom: 0; margin-top: 0;">
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}<br>
|
|
{{ range .Pages }}
|
|
<article style="margin-bottom: 0; margin-top: 0;">
|
|
<h3><a href="{{ .Params.link }}">{{ .Params.link }}</a></h3>
|
|
{{ .Title }}
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
{{- end -}}
|
|
|
|
{{ define "sidebar" }}
|
|
{{- partial "contentlayouts/menu.html" . }}
|
|
{{ end }}
|