{{ define "main" }} {{ .Content }} {{ if .IsSection }} {{ if eq .Path "/archiv" }} {{/* Archiv 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 if eq .Path "/archiv/software" }} {{/* Software: kuratierte Landing — Werkzeuge (mit externem Link) getrennt von Texten & Anleitungen. */}}

Archiv

{{ .Title }}

{{ with .Params.description }}

{{ . }}

{{ end }}
{{ $tools := where .RegularPages "Params.external" "!=" nil }} {{ $texts := where .RegularPages "Params.external" nil }} {{ with $tools }}

Werkzeuge

{{ end }}

Texte & Anleitungen

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

Archiv

{{ .Title }}

{{ with .Params.description }}

{{ . }}

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