{{ $s := partialCached "scratch.html" . }} {{ $currentNode := . }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }} {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }}
{{ substr $currentDir 0 -1 }}: {{ substr .Title 0 1 }}{{ substr .Title 1 }}
{{ if ne (trim .Page.TableOfContents "\n") "" }} {{ .Page.TableOfContents }} {{ end }}
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
{{ with $scratch.backlinks }} mentioned in⁄ {{ end }}
{{ range $scratch.backlinks }} {{ end }} {{ end }} {{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
{{ with $scratch.has }} has {{ $scratch.has }}⁄ {{ end }}
{{ range $scratch.has_children }} {{ end }} {{ end }} {{ if eq $scratch.depth "crust" }}
in {{ index $scratch.in 1 }}⁄
{{ range $scratch.is_in }} {{ end }} {{ end }}