{{ define "title" }} {{ $name := .Title }} {{ if lower $name | i18n }} {{ $name = lower $name | i18n }} {{ end }}

{{ $name }}

{{ end }} {{ define "main" }} {{ partial "debug" (dict "context" . "caller" "single.html" )}}
{{ if eq .Type "tools" }}
{{ $tool := printf "misc/%s" .Params.tool }} {{ partial $tool . }}
{{ else }}
{{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }}
{{ end }} {{ end }} {{ define "pagefooter" }} {{ if and (ne .Section "misc") (eq .Type "tools") }}
{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}
{{ .Date | time.Format ":date_full" }}
{{ if ne .Date .Lastmod }}
{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}
{{ .Lastmod | time.Format ":date_full" }}
{{ end }}
{{ end }} {{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{- partial "contentlayouts/menu.html" . }} {{ end }} {{ end }}