{{ define "main" }} {{- $title := or .Params.header_text .Title -}} {{- partial "header/hero.html" (dict "title" $title "image" .Params.image "context" . ) -}}
{{ partial "toc/container.html" (dict "toc" "sitemap/toc.html" "context" . ) }} {{ partial "sitemap/summary.html" (dict "context" . "block_wrapped" true ) }} {{ partial "contents/list.html" . }}

{{ i18n "sitemap.pages" }}

    {{ range (where .Site.Pages "Type" "pages") }} {{ if eq .Parent.Path "/pages" }}
  • {{ safeHTML .Title }} {{ if .Pages }} {{ partial "pages/sitemap_recursive_pages" .}} {{ end }}
  • {{ end }} {{ end }}
{{ range .Site.Sections }} {{ if and (ne .Type "sitemap") (ne .Type "pages") }} {{ $permalink := .Permalink }}

{{ safeHTML .Title }}

    {{ range where .Site.Pages "Section" .Type }} {{ if ne $permalink .Permalink }}
  • {{ safeHTML .Title }}
  • {{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }}