forked from Bunteshaus/bunteshaus.de
26 lines
557 B
HTML
26 lines
557 B
HTML
{{- define "title" -}}
|
|
{{ $name := .Name | lower }}
|
|
{{ if ne ($name | i18n) "" }}
|
|
{{ $name = $name | i18n }}
|
|
{{ else }}
|
|
{{ if ne .Section "events" }}
|
|
{{ $name = $name | singularize }}
|
|
{{ end }}
|
|
{{ $name = $name | humanize }}
|
|
{{ end }}
|
|
<h1>{{ $name }}</h1>
|
|
{{- end -}}
|
|
|
|
{{- define "main" -}}
|
|
{{ partial "debug" (dict "context" . ) }}
|
|
{{ if ne .Content "" }}
|
|
<article>
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
{{- end -}}
|
|
|
|
{{ define "sidebar" }}
|
|
{{- partial "contentlayouts/menu.html" . }}
|
|
{{ end }}
|