You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 line
2.5 KiB

  1. {{ $s := partialCached "scratch.html" . }}
  2. {{ $currentFile := (printf "/%s" .File) }}
  3. {{ $scratch := $s.Get $currentFile }}
  4. {{ if eq hugo.Environment "preview" }}
  5. {{- $gitUrl := .Site.Params.giturl -}}
  6. <div class="headiter">
  7. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ .File }}">edit_this</a>
  8. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $scratch.mantle }}/">add_new_{{ $scratch.mantle }}</a>
  9. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $scratch.crust }}/">add_new_{{ $scratch.crust }}</a>
  10. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
  11. <a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
  12. </div>
  13. {{ end }}
  14. <div class="header">
  15. <a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank">
  16. <img src="/images/bibliotheke.svg" />
  17. </a>
  18. <div class="breadcrumbs">
  19. {{ if eq $scratch.depth "mantle" }}
  20. {{ if isset $scratch "is_in" }}
  21. <a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ with (index $scratch.is_in 0) }}{{ substr .Title 0 1 }}</span><i>{{ substr .Title 1 }}</i></a>{{ end }}
  22. {{ end }}
  23. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  24. {{ end }}
  25. {{ if eq $scratch.depth "crust" }}
  26. {{ if isset $scratch "is_in" }}
  27. {{ $_ := index $scratch.is_in 0 }}
  28. {{ $_ = $s.Get (printf "/%s" $_.File) }}
  29. {{ if isset $_ "is_in" }}
  30. {{ $home := index $_.is_in 0 }}
  31. <a href="{{ $home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ substr $home.Title 0 1 }}</span><i>{{ substr $home.Title 1 }}</i></a>
  32. {{ end }}
  33. » <a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with (index $scratch.is_in 0) }}<i>{{ .Title }}</i></a>{{ end }}
  34. {{ end }}
  35. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  36. {{ end }}
  37. </div>
  38. </div>