25 lines
803 B
HTML
25 lines
803 B
HTML
{{- $cursiveMenuPrefix := .cursiveMenuPrefix -}}
|
||
{{- $menuSection := .menuSection -}}
|
||
{{- $pagePaths := .pagePaths -}}
|
||
{{- $class := .class -}}
|
||
<div class="graph-menu{{- $class -}}">
|
||
<div class="graph-inline-cursive">
|
||
{{- with $cursiveMenuPrefix -}}{{- . -}} {{- end -}}
|
||
{{- if gt ($pagePaths|len) 1 -}}
|
||
{{- partial "GetPluralSectionName.html" $menuSection -}}
|
||
{{- else -}}
|
||
{{- $menuSection -}}
|
||
{{- end -}}⁄
|
||
</div>
|
||
<div class="graph-inline-link">
|
||
{{- range $pagePaths -}}
|
||
{{- $p := site.GetPage . -}}
|
||
{{- $pageSection := trim $p.FirstSection.RelPermalink "//" -}}
|
||
{{- if eq $pageSection $menuSection -}}
|
||
<div>
|
||
<a href="{{- $p.RelPermalink -}}">{{- $p.LinkTitle -}}</a>
|
||
</div>
|
||
{{- end -}}
|
||
{{- end -}}
|
||
</div>
|
||
</div>
|