diff --git a/assets/css/site.css b/assets/css/site.css index d3dec65..df65e62 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -670,6 +670,10 @@ details { padding-right: 1rem; } +.sitemap { + padding-left: 3rem; +} + @media (max-width: 767px) { html { box-sizing: border-box; @@ -713,4 +717,4 @@ details { .sessiongrid { display: none; } -} \ No newline at end of file +} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 447b3d9..08be43e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,26 @@ {{ define "singlebody" }} +
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }}
{{ $s := partialCached "scratch.html" . }} - {{ range $p := .Site.Pages }} - {{ $scratch := $s.Get (printf "/%s" .File) }} -
{{ . }}: {{ .Title }}
- {{ with ($scratch.depth) }} -
Depth: {{ . }} + {{ $noTriad := (slice) }} + {{ range $p := .Site.RegularPages }} + {{ $scratch := $s.Get (printf "/%s" $p.File) }} + {{ if eq $scratch.depth "core" }} +
{{- substr $p.File.Dir 0 -1 -}}⁄{{- $p.Title -}} + {{ range $coreKid := $scratch.has_children }} +
{{- substr $coreKid.File.Dir 0 -1 -}}⁄{{- $coreKid.Title -}} + {{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }} + {{ range $mantleKid := $scratchCKid.has_children }} + + {{ end }} +
+ {{ end }} + {{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}} + {{ $noTriad = $noTriad | append $p }} + {{ else }} +
{{ end }} -
- {{ end }} + {{ end }} + {{ range $noTriad }} +
{{- substr .File.Dir 0 -1 -}}⁄{{- .Title -}}
+ {{ end }} {{ end }}