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.
 
 
 
 
 

31 lines
1.4 KiB

  1. {{ $currentSession := . }}
  2. <div class="header">
  3. <a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank">
  4. <img src="/images/bibliotheke.svg" />
  5. </a>
  6. <div class="breadcrumbs">
  7. {{ if not .IsHome }}
  8. <a href="{{ with $.GetPage $.Site.Params.home }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ substr $.Site.Home.Title 0 1 }}</span><i>{{ substr $.Site.Home.Title 1 }}</i></a>
  9. {{ end }}
  10. {{ if eq .File.Dir "topic/" }}
  11. <div class="topicbar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></div>
  12. {{ end }}
  13. {{ $.Scratch.Set "counter" 0 }}
  14. {{ range where $.Site.RegularPages ".Section" "topic" }}
  15. {{ if in .Params.has_sessions $currentSession.File.LogicalName }}
  16. {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
  17. {{ if lt ($.Scratch.Get "counter") 2 }}
  18. <span><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  19. {{ end }}
  20. {{ end }}
  21. {{ end }}
  22. {{ if eq .File.Dir "session/" }}
  23. <span class="topicbar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
  24. {{ end }}
  25. </div>
  26. </div>