25 lines
507 B
HTML
25 lines
507 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" -}}
|
|
{{ if ne .Content "" }}
|
|
<article>
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
{{- end -}}
|
|
|
|
{{ define "sidebar" }}
|
|
{{- partial "contentlayouts/menu.html" . }}
|
|
{{ end }}
|