{{ define "main" }} {{ .Content }} {{ if .IsSection }} {{ if eq .Path "/library" }} {{/* Library root: Atlas — gruppiert nach Untersection */}}
{{ range .Sections.ByWeight }} {{ $section := path.Base .RelPermalink }}

{{ .Title }}

{{ with .Params.description }}

{{ . }}

{{ end }} {{ if gt (len .RegularPages) 6 }}

alle in {{ .Title }} →

{{ end }}
{{ end }} {{/* Tag-Cloud */}} {{ with site.Taxonomies.tags }}

Tags

{{ end }}
{{ else }} {{/* Library subsection: chronologisch */}} {{ $section := path.Base .RelPermalink }}

Library

{{ .Title }}

{{ with .Params.description }}

{{ . }}

{{ end }}
{{ end }} {{ end }} {{ end }}