{{ .Content }}
{{ $pages := where site.RegularPages "Section" "library" }}
{{ if $pages }}
{{/* Gruppen sammeln + sortieren */}}
{{ $groups := dict }}
{{ range $pages }}
{{ $g := .Params.group | default "Allgemein" }}
{{ $existing := index $groups $g | default slice }}
{{ $groups = merge $groups (dict $g ($existing | append .)) }}
{{ end }}
{{ $groupNames := slice }}
{{ range $g, $_ := $groups }}{{ $groupNames = $groupNames | append $g }}{{ end }}
{{ $groupNames = sort $groupNames }}
{{ range $groupNames }}
{{ $ps := index $groups . }}
{{ . }}
{{ range sort $ps "Title" }}
{{ $norm := lower .Title }}
{{ $norm = replace $norm "ä" "a" }}
{{ $norm = replace $norm "ö" "o" }}
{{ $norm = replace $norm "ü" "u" }}
{{ $norm = replace $norm "ß" "ss" }}
-
{{ .LinkTitle }}
{{ with .Params.summary }} — {{ . }}{{ end }}
{{ end }}
{{ end }}
{{ else }}
Noch keine Einträge — der erste entsteht im Redaktions-Editor.
{{ end }}