Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

44 рядки
2.2 KiB

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