{{ $seiten_titel := .Params.titel | default .Title }} {{ $beschreibung := .Params.kurzbeschreibung | default .Site.Params.beschreibung }} {{ if and (eq .Section "varianten") .IsPage .Params.methode }} {{ with partial "methode-fuer-variante.html" . }} {{ $seiten_titel = printf "%s – %s" (.Params.titel | default .Title) $.Params.untertitel }} {{ $beschreibung = .Params.kurzbeschreibung | default $.Site.Params.beschreibung }} {{ end }} {{ end }} {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ $seiten_titel }} · {{ .Site.Title }}{{ end }} {{/* SVG first: has dark-mode switching built in (@media prefers-color-scheme within the file itself) and is preferred by current browsers. The PNG variants below are the fallback for browsers/contexts without SVG favicon support - since PNGs can't do @media queries themselves, there's a separate light/dark pair for them with media="(prefers-color-scheme: ...)" on the itself (introduced by Safari, meanwhile more widely supported). Without this, the PNG fallback would be low-contrast in dark browser chrome (dark green icon on a transparent background). */}} {{ with .Site.Params.farbe_primaer }} {{ end }} {{/* data-pagefind-body limits the area indexed by Pagefind to the actual page content - without this attribute, Pagefind would also index the header (logo, "Suchen"/"Stöbern", navigation) and footer on every single page, and every search hit would additionally carry these terms in the index. This lives here in baseof.html, so it applies equally to every page - no risk that individual pages drop out of the index because of it (per Pagefind's own docs: "if data-pagefind-body appears anywhere on the site, pages without this attribute are no longer indexed at all"). */}}
{{ block "main" . }}{{ end }}