From 4135a7b057489a1398a56861785a61d55bd1f57d Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Tue, 15 Dec 2020 02:10:32 +0100 Subject: [PATCH] and more of course... --- layouts/_default/list.html | 62 +++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b29646a..b428d29 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,35 +1,35 @@ {{ define "singlebody" }} -{{ $currentNode := . }} -{{ $currentDir := "" }} -{{ with .File }} -{{ $currentDir = .Dir }} -{{ end }} -{{ $currentFile := (printf "/%s" .File) }} - -
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }} ({{ $currentDir }})
- -{{ $s := partialCached "scratch.html" . }} -{{ $noTriad := (slice) }} -{{ range $p := .Site.RegularPages }} -{{ $scratch := $s.Get (printf "/%s" $p.File) }} -{{ if eq $scratch.depth "core" }} -
- {{ range $coreKid := $scratch.has_children }} -
- {{ $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 }} -
+ {{ $currentNode := . }} + {{ $currentDir := "" }} + {{ with .File }} + {{ $currentDir = .Dir }} + {{ end }} + {{ $currentFile := (printf "/%s" .File) }} + +
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }} ({{ $currentDir }})
+ + {{ $s := partialCached "scratch.html" . }} + {{ $noTriad := (slice) }} + {{ range $p := .Site.RegularPages }} + {{ $scratch := $s.Get (printf "/%s" $p.File) }} + {{ if eq $scratch.depth "core" }} +
+ {{ range $coreKid := $scratch.has_children }} +
+ {{ $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 }} + {{ range $noTriad }} +
{{- substr .File.Dir 0 -1 -}}⁄{{- .Title -}}
{{ end }} - {{ end }} - {{ range $noTriad }} -
{{- substr .File.Dir 0 -1 -}}⁄{{- .Title -}}
- {{ end }} {{ end }}