50 lines
2.2 KiB
HTML
50 lines
2.2 KiB
HTML
{{ $currentNode := . }}
|
||
{{ $currentDir := "" }}
|
||
{{ with .File }}
|
||
{{ $currentDir = .Dir }}
|
||
{{ end }}
|
||
|
||
<div class="{{ $.Scratch.Get "depth" }}title"><span class="sup">{{ substr $currentDir 0 -1 }}⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||
|
||
<div class="grid">
|
||
<div class="leftcolumn">
|
||
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
||
{{ .Page.TableOfContents }}
|
||
{{ end }}
|
||
</div>
|
||
<div class="rightcolumn">
|
||
{{ if (not (eq ($.Scratch.Get "depth") "crust")) }}
|
||
<div class="has">
|
||
<span class="sup">has {{ index ($.Scratch.Get "has") 1 }}⁄</span>
|
||
</div>
|
||
<div class="afterhas">
|
||
{{ range index $currentNode.Params (printf "has_%s" (index ($.Scratch.Get "has") 1) )}}
|
||
{{ with $.GetPage (printf "%s%s" (printf "/%s/" (index ($.Scratch.Get "has") 0)) . ) }}
|
||
<div class="{{ index $.Site.Data.sandpointsnamegraph (index ($.Scratch.Get "has") 0) "depth" }}">
|
||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||
</div>
|
||
{{ end }}
|
||
{{ end }}
|
||
{{ end }}
|
||
|
||
{{ if eq ($.Scratch.Get "depth") "crust" }}
|
||
<div class="has">
|
||
<span class="sup">in {{ index ($.Scratch.Get "in") 1 }}⁄</span>
|
||
</div>
|
||
<div class="afterhas">
|
||
{{ range where $.Site.RegularPages ".Section" (index ($.Scratch.Get "in") 0) }}
|
||
{{ if in (index .Params (printf "has_%s" ($.Scratch.Get "plural"))) $currentNode.File.LogicalName }}
|
||
<div class="{{ substr $currentDir 0 -1 }}">
|
||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||
</div>
|
||
{{ else if in $currentNode.Params.is_in .File.LogicalName }}
|
||
<div class="{{ substr $currentDir 0 -1 }}">
|
||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||
</div>
|
||
{{ end }}
|
||
{{ end }}
|
||
{{ end }}
|
||
</div>
|
||
</div>
|
||
</div>
|