2020-08-21 14:20:02 +00:00
|
|
|
{{ $currentSession := . }}
|
2020-08-25 10:57:43 +00:00
|
|
|
|
2020-09-09 01:04:23 +00:00
|
|
|
{{ $_ := newScratch }}
|
|
|
|
{{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}}
|
|
|
|
{{ if eq $currentSession.File.Dir (printf "%s/" $k) }}
|
|
|
|
{{ $_.Add "depth" (index $v "depth") }}
|
|
|
|
{{ if eq (index $v "depth") "mantle" }}
|
|
|
|
{{ $_.Add "home" (index $v "in" 0) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq (index $v "depth") "crust" }}
|
|
|
|
{{ $_.Add "home" (index (index $currentSession.Site.Data.sandpointsnamegraph (index $v "in" 0)) "in" 0) }}
|
|
|
|
{{ $_.Add "mantle" (index $v "in" 0) }}
|
|
|
|
{{ $_.Add "mantle_has" (index (index $currentSession.Site.Data.sandpointsnamegraph (index $v "in" 0)) "has" 1) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
2020-08-25 10:57:43 +00:00
|
|
|
<div class="header">
|
2020-09-01 01:17:22 +00:00
|
|
|
<a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank">
|
|
|
|
<img src="/images/bibliotheke.svg" />
|
|
|
|
</a>
|
|
|
|
<div class="breadcrumbs">
|
2020-09-09 01:04:23 +00:00
|
|
|
{{ if ne ($_.Get "depth") "core" }}
|
|
|
|
<a href="{{ with $currentSession.Site.GetPage (printf "/%s/index.md" ($_.Get "home")) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ with $currentSession.Site.GetPage (printf "/%s/index.md" ($_.Get "home")) }}{{ substr .Title 0 1 }}</span><i>{{ substr .Title 1 }}</i></a>{{ end }}
|
2020-09-01 01:17:22 +00:00
|
|
|
{{ end }}
|
2020-08-18 23:14:35 +00:00
|
|
|
|
2020-09-09 01:04:23 +00:00
|
|
|
{{ if eq ($_.Get "depth") "mantle" }}
|
|
|
|
<span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
|
2020-09-01 01:17:22 +00:00
|
|
|
{{ end }}
|
2020-08-21 14:20:02 +00:00
|
|
|
|
2020-09-09 01:04:23 +00:00
|
|
|
{{ if eq ($_.Get "depth") "crust" }}
|
|
|
|
{{ $.Scratch.Set "counter" 0 }}
|
|
|
|
{{ range where $.Site.RegularPages ".Section" ($_.Get "mantle") }}
|
|
|
|
{{ if in (index .Params (printf "has_%s" ($_.Get "mantle_has"))) $currentSession.File.LogicalName }}
|
|
|
|
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
|
|
|
{{ if lt ($.Scratch.Get "counter") 2 }}
|
|
|
|
<span><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-09-01 01:17:22 +00:00
|
|
|
{{ end }}
|
2020-09-09 01:04:23 +00:00
|
|
|
<span class="mantlebar"><i> » <a href="{{ $currentSession.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $currentSession.Title }}</a></i></span>
|
|
|
|
{{ end }}
|
2020-09-01 01:17:22 +00:00
|
|
|
</div>
|
2020-08-19 23:21:03 +00:00
|
|
|
</div>
|