Raw
 1{{- $cursiveMenuPrefix := .cursiveMenuPrefix -}}
 2{{- $menuSection := .menuSection -}}
 3{{- $pagePaths := .pagePaths -}}
 4{{- $class := .class -}}
 5<div class="graph-menu{{- $class -}}">
 6  <div class="graph-inline-cursive">
 7    {{- with $cursiveMenuPrefix -}}{{- . -}}&nbsp;{{- end -}}
 8    {{- if gt ($pagePaths|len) 1 -}}
 9      {{- partial "GetPluralSectionName.html" $menuSection -}}
10    {{- else -}}
11      {{- $menuSection -}}
12    {{- end -}}⁄
13  </div>
14  <div class="graph-inline-link">
15    {{- range $pagePaths -}}
16      {{- $p := site.GetPage . -}}
17      {{- $pageSection := $p.Section -}}
18      {{- if eq $pageSection $menuSection -}}
19    <div>
20      {{- partial "page-link.html" (dict "page" $p "from" $.from) -}}
21      {{- if $.affiliation -}}{{- with $p.Params.affiliation }}<span class="affiliation">, {{ . }}</span>{{ end -}}{{- end -}}
22    </div>
23      {{- end -}}
24    {{- end -}}
25  </div>
26</div>