{{ define "title" }}

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

{{ end }} {{ define "add_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 }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{ end }} {{ end }} {{ define "pagefooter" }} {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}
{{ with .Params.foundations }} Träger der Veranstaltung:
{{ range . }} {{ $l := . }} {{ $url := "" }} {{ if isset site.Params.foundations $l }} {{ $url = index site.Params.foundations $l }} {{ end }} {{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}} {{ if $res_im }}
{{ if $url }}{{ end }} {{ if $url }}{{ end }}
{{ else if eq hugo.Environment "development" }}
assets/images/foundations/{{- $l -}} .* missing
{{ end }} {{ end }}
{{ end }}
{{ 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 }}