1{{- $graph := (partialCached "graph.html" site site.Language.Lang).pages -}}
2{{- $entry := index $graph .Path -}}
3{{- $parents := $entry.parents | default slice -}}
4{{- $grandparents := slice -}}
5{{- range $parents -}}{{- $grandparents = union $grandparents ((index $graph .).parents | default slice) -}}{{- end -}}
6{{- $home := site.GetPage (site.Params.sandpoints.home | default site.Params.home | default "/") -}}
7{{- $identity := md5 .RelPermalink -}}
8<header class="header">
9 <nav class="breadcrumbs" aria-label="Breadcrumbs">
10 {{- if $parents -}}
11 {{- with $grandparents -}}{{ partial "breadcrumb-level.html" (dict "paths" . "id" (printf "crumb-%s-grandparent" $identity)) }} » {{ end -}}
12 {{- partial "breadcrumb-level.html" (dict "paths" $parents "id" (printf "crumb-%s-parent" $identity)) }} » {{ partial "page-link.html" (dict "page" . "label" .Section) -}}
13 {{- else -}}
14 {{- with $home -}}{{ partial "page-link.html" (dict "page" . "class" "home" "label" .Section) }}{{ end -}}
15 {{- end -}}
16 </nav>
17 <a class="bibliotheke" title="Bibliotheke" href="{{ printf "%sBROWSE_LIBRARY.html" (site.Params.sandpoints.catalogPrefix | default "/library/") | relURL }}"><img src="{{ "images/bibliotheke.svg" | relURL }}" alt="Bibliotheke"></a>
18</header>