{{ .Description }}
{{ end }} {{ $count_href := .TableOfContents | strings.Count "href" }} {{ if ge $count_href 4 }}Inhaltsverzeichnis
{{ else }} {{ $fname := . }} {{ if not strings.HasSuffix $fname "md" }}
{{ define "banner" }}
{{ $image := "" }}
{{ $banner := "banner*" }}
{{ if .Resources.GetMatch $banner }}
{{ $image = .Resources.GetMatch $banner }}
{{ end }}
{{ $title := .Title }}
{{ if .Params.events }}
{{ $cat := index .Params.events 0 }}
{{ $title = printf "%s: %s" $cat $title }}
{{ end }}
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" $title "section" .Section) }}
{{ end }}
{{ define "content" }}
{{ .Description }}Inhaltsverzeichnis
{{ else }}
{{ $fname := . }}
{{ if not strings.HasSuffix $fname "md" }}