Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

97 wiersze
5.4 KiB

  1. {{ $s := partialCached "scratch.html" . }}
  2. {{ $currentFile := (printf "/%s" .File) }}
  3. {{ $scratch := $s.Get $currentFile }}
  4. {{ $is_in_ := newScratch }}
  5. {{ with eq $scratch.depth "crust" }}
  6. {{ range $scratch.is_in }}
  7. {{ range $k,$v := $s.Get (printf "/%s" .File) }}
  8. {{ if eq $k "is_in" }}
  9. {{ range $v }}
  10. {{ $is_in_.Set (printf "/%s" .File) (printf "/%s" .File) }}
  11. {{ end }}
  12. {{ end }}
  13. {{ end }}
  14. {{ end }}
  15. {{ end }}
  16. {{ $is_in_is_in := (slice) }}
  17. {{ range $is_in_.Values }}
  18. {{ $is_in_is_in = $is_in_is_in | append ($.GetPage .) }}
  19. {{ end }}
  20. {{ if eq hugo.Environment "preview" }}
  21. {{- $gitUrl := .Site.Params.giturl -}}
  22. <div class="headiter">
  23. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ .File }}">EDIT_THIS</a>
  24. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ with $scratch.core }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.core }}{{ index . 0 | upper }}{{ end }}</a>
  25. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ with $scratch.mantle }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.mantle }}{{ index . 0 | upper }}{{ end }}</a>
  26. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/{{ with $scratch.crust }}{{ index . 0 }}{{ end }}/">ADD_{{ with $scratch.crust }}{{ index . 0 | upper }}{{ end }}</a>
  27. <a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">PUBLISH</a>
  28. <a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
  29. </div>
  30. {{ end }}
  31. <div class="header">
  32. <a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank">
  33. <img src="/images/bibliotheke.svg" />
  34. </a>
  35. <div class="breadcrumbs">
  36. {{ if eq $scratch.depth "mantle" }}
  37. {{ with gt (len $scratch.is_in) 1 }}
  38. <div class="ddmenu">
  39. <input id="toggly0" type="checkbox">
  40. <label for="toggly0" tabindex="1"><span class="sup">cf.&nbsp;</span><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>&nbsp;{{ end }}</label>
  41. <div class="hiddendiv">
  42. <ul class="mt-4">
  43. {{ range after 1 $scratch.is_in }}
  44. <li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li>
  45. {{ end }}
  46. </ul>
  47. </div>
  48. </div>
  49. {{ else }}
  50. <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 }}
  51. {{ end }}
  52. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  53. {{ end }}
  54. {{ if eq $scratch.depth "crust" }}
  55. {{ with gt (len $is_in_is_in) 1 }}
  56. <div class="ddmenu">
  57. <input id="toggly1" type="checkbox">
  58. <label for="toggly1" tabindex="1"><span class="sup">cf.&nbsp;</span><a href="{{ with (index $is_in_is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with (index $is_in_is_in 0) }}<i>{{ .Title }}</i></a>&nbsp;{{ end }}</label>
  59. <div class="hiddendiv">
  60. <ul class="mt-4">
  61. {{ range after 1 $is_in_is_in }}
  62. <li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li>
  63. {{ end }}
  64. </ul>
  65. </div>
  66. </div>
  67. {{ else }}
  68. {{ $home := index $is_in_is_in 0 }}
  69. <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>
  70. {{ end }}
  71. {{ with gt (len $scratch.is_in) 1 }}
  72. »&nbsp;
  73. <div class="ddmenu">
  74. <input id="toggly" type="checkbox">
  75. <label for="toggly" tabindex="1"><span class="sup">cf.&nbsp;</span><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>&nbsp;{{ end }}</label>
  76. <div class="hiddendiv">
  77. <ul class="mt-4">
  78. {{ range after 1 $scratch.is_in }}
  79. <li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li>
  80. {{ end }}
  81. </ul>
  82. </div>
  83. </div>
  84. {{ else }}»&nbsp;<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 }}
  85. {{ end }}
  86. <span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  87. {{ end }}
  88. </div>
  89. </div>