{{ define "main" }} {{ $cats := .Params.kategorien | default slice }} {{ $cat := index $cats 0 }}

{{ i18n "breadcrumbLocations" }} {{ with $cat }} » {{ partial "kat-label.html" . }}{{ end }}

{{ .Title }}

{{ with .Params.subtitle }}

{{ . }}

{{ end }}
{{ $img := .Resources.GetMatch "{cover,*featured*,image}.*" }} {{ with $img }}{{ $.Title }}{{ end }} {{ with .Params.bildnachweis }}

{{ . | safeHTML }}

{{ end }} {{ .Content }} {{ with .Params.quelle }}

{{ i18n "externalSource" }}

{{ partial "linkify.html" . }}

{{ end }}
{{ if and .Params.lat .Params.lng }}
{{ partial "karte.html" (dict "pages" (slice .) "klein" true) }}
{{ with .Params.address }}

{{ . }}

{{ end }} ↳ {{ i18n "directions" }}
{{ end }} {{ if or $cats .Params.datum }}
{{ range $cats }} {{ partial "kat-label.html" . }} {{ end }} {{ with .Params.datum }}

{{ . }}

{{ end }}
{{ end }}

← {{ i18n "allLocations" }}

{{ end }}