2020-11-29 01:28:30 +01:00
|
|
|
|
{{ $s := partialCached "scratch.html" . }}
|
|
|
|
|
|
|
|
|
|
{{ $currentNode := . }}
|
|
|
|
|
{{ $currentDir := "" }}
|
|
|
|
|
{{ with .File }}
|
|
|
|
|
{{ $currentDir = .Dir }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ $currentFile := (printf "/%s" .File) }}
|
|
|
|
|
{{ $scratch := $s.Get $currentFile }}
|
|
|
|
|
|
2020-12-09 03:13:51 +01:00
|
|
|
|
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}: {{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
2020-11-29 01:28:30 +01:00
|
|
|
|
|
|
|
|
|
<div class="grid">
|
2020-12-09 03:13:51 +01:00
|
|
|
|
<div class="leftcolumn">
|
|
|
|
|
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
|
|
|
|
{{ .Page.TableOfContents }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rightcolumn">
|
2020-12-09 03:27:46 +01:00
|
|
|
|
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
|
2020-12-09 03:13:51 +01:00
|
|
|
|
<div class="has">
|
|
|
|
|
{{ with $scratch.backlinks }}
|
|
|
|
|
<span class="sup">mentioned in⁄</span>
|
2020-11-29 01:28:30 +01:00
|
|
|
|
{{ end }}
|
2020-12-09 03:13:51 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="afterhas">
|
|
|
|
|
{{ range $scratch.backlinks }}
|
|
|
|
|
<div class="{{ $scratch.child_depth }}">
|
|
|
|
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
|
|
|
|
</div>
|
2020-11-29 01:28:30 +01:00
|
|
|
|
{{ end }}
|
2020-12-09 03:13:51 +01:00
|
|
|
|
{{ end }}
|
2020-11-29 01:28:30 +01:00
|
|
|
|
|
2020-12-09 03:13:51 +01:00
|
|
|
|
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
|
|
|
|
|
<div class="has">
|
|
|
|
|
{{ with $scratch.has }}
|
|
|
|
|
<span class="sup">has {{ $scratch.has }}⁄</span>
|
2020-11-29 01:28:30 +01:00
|
|
|
|
{{ end }}
|
2020-12-09 03:13:51 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="afterhas">
|
|
|
|
|
{{ range $scratch.has_children }}
|
|
|
|
|
<div class="{{ $scratch.child_depth }}">
|
|
|
|
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if eq $scratch.depth "crust" }}
|
|
|
|
|
<div class="has">
|
|
|
|
|
<span class="sup">in {{ index $scratch.in 1 }}⁄</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="afterhas">
|
|
|
|
|
{{ range $scratch.is_in }}
|
|
|
|
|
<div class="{{ substr $currentDir 0 -1 }}">
|
|
|
|
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-11-29 01:28:30 +01:00
|
|
|
|
</div>
|
|
|
|
|
|