{{ define "title" }}

{{ if (i18n .Title (dict "Count" 0))}}{{ i18n .Title (dict "Count" 0) }}{{ else }}{{ .Title }}{{ end }}

{{ end }} {{ define "content" }} {{ $partial_before := "" }} {{ $partial := "layout/article" }} {{ $pic := "true" }} {{ if eq .Params.tool "generator" }} {{ $partial = "layout/generator" }} {{ else if eq .Params.tool "nottranslated" }} {{ $partial = "layout/nottranslated" }} {{ else if or (eq .Layout "contact") (eq .Layout "imprint") }} {{ $partial_before = "snippets/contact" }} {{ $partial = printf "layout/%s" .Layout }} {{ else if eq .Layout "archive" }} {{ $partial = printf "layout/%s" .Layout }} {{ end }}
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before "type" "article") }}
{{ end }}