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.
 
 
 
 
 

46 rivejä
2.6 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.core }}/">add_new_{{ $scratch.core }}</a>
  9. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $scratch.mantle }}/">add_new_{{ $scratch.mantle }}</a>
  10. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ $scratch.crust }}/">add_new_{{ $scratch.crust }}</a>
  11. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
  12. <a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
  13. </div>
  14. {{ end }}
  15. <div class="header">
  16. <a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank">
  17. <img src="/images/bibliotheke.svg" />
  18. </a>
  19. <div class="breadcrumbs">
  20. {{ if eq $scratch.depth "mantle" }}
  21. {{ if isset $scratch "is_in" }}
  22. <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>{{ if gt (len $scratch.is_in) 1 }}+{{ end}}</a>{{ end }}
  23. {{ end }}
  24. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  25. {{ end }}
  26. {{ if eq $scratch.depth "crust" }}
  27. {{ if isset $scratch "is_in" }}
  28. {{ $_ := index $scratch.is_in 0 }}
  29. {{ $_ = $s.Get (printf "/%s" $_.File) }}
  30. {{ if isset $_ "is_in" }}
  31. {{ $home := index $_.is_in 0 }}
  32. <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>
  33. {{ end }}
  34. » <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 }}
  35. {{ end }}
  36. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  37. {{ end }}
  38. </div>
  39. </div>