1<nav class="src-crumbs" aria-label="Breadcrumb">
2 <div class="src-crumbs__path">
3 {{- range .Ancestors.Reverse }}{{ if not .IsHome }}<a href="{{ .RelPermalink }}" class="link">{{ .Title }}</a><span aria-hidden="true"> / </span>{{ end }}{{ end -}}
4 <h1 class="src-crumbs__current">{{ .Title }}</h1>
5 </div>
6 {{- with $repo := site.Params.repo.url -}}
7 {{- $href := $repo -}}
8 {{- with $.Params.src }}{{ $href = printf "%s/blob/main/%s" $repo (strings.TrimPrefix "/src/" .) }}{{ end -}}
9 {{- with $.Params.srcdir }}{{ $href = printf "%s/tree/main/%s" $repo . }}{{ end -}}
10 <a href="{{ $href }}" class="link src-crumbs__git" target="_blank" rel="noopener" aria-label="View on GitHub">{{ partial "icon" "github" }}</a>
11 {{- end }}
12</nav>