35 lines
2.2 KiB
HTML
35 lines
2.2 KiB
HTML
{{ $currentNode := . }}
|
|
|
|
{{- $gitUrl := .Site.Params.giturl -}}
|
|
{{ if eq hugo.Environment "preview" }}
|
|
<div class="headiter">
|
|
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ $currentNode.File }}">edit_this</a>
|
|
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $.Scratch.Get "mantle" }}/">add_new_{{ $.Scratch.Get "mantle" }}</a>
|
|
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $.Scratch.Get "crust" }}/">add_new_{{ $.Scratch.Get "crust" }}</a>
|
|
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
|
|
<a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="header">
|
|
<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">
|
|
{{ if ne ($.Scratch.Get "depth") "core" }}
|
|
<a href="{{ with $currentNode.Site.GetPage (printf "/%s/index.md" ($.Scratch.Get "core")) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ with $currentNode.Site.GetPage (printf "/%s/index.md" ($.Scratch.Get "core")) }}{{ substr .Title 0 1 }}</span><i>{{ substr .Title 1 }}</i></a>{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if eq ($.Scratch.Get "depth") "mantle" }}
|
|
<span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
|
|
{{ end }}
|
|
|
|
{{ if eq ($.Scratch.Get "depth") "crust" }}
|
|
{{ range first 1 (where (where $.Site.RegularPages ".Section" ($.Scratch.Get "mantle")) (printf ".Params.has_%s" ($.Scratch.Get "mantle_has")) "intersect" (slice $currentNode.File.LogicalName)) }}
|
|
<span><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
|
|
{{ end }}
|
|
<span class="mantlebar"><i> » <a href="{{ $currentNode.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $currentNode.Title }}</a></i></span>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|