32 lines
734 B
HTML
32 lines
734 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>
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
{{ range .Pages }}
|
|
<article>
|
|
<h3><a href="{{ .Params.link }}">{{ .Params.link }}</a></h3>
|
|
{{ .Title }}<br>
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
{{- end -}}
|
|
|
|
{{ define "sidebar" }}
|
|
{{- partial "contentlayouts/menu.html" . }}
|
|
{{ end }}
|