Raw
1{{- $currentPage := .currentPage -}}
2{{- range $label, $paths := (index (partialCached "graph.html" site site.Language.Lang).pages $currentPage.Path).inverses -}}
3  {{- if or (eq $label "mentioned in") (and $.print (eq $label "is in")) -}}{{- continue -}}{{- end -}}
4  {{- $class := cond (eq $label "is in") " backref isin" " backref inverse" -}}
5  {{- range $menuSection, $pagePaths := partial "GetSectionsWithPagePaths.html" $paths -}}
6    {{- if eq $menuSection "sections" -}}{{- continue -}}{{- end -}}
7    {{- partial "graph-menu.html" (dict "cursiveMenuPrefix" $label "menuSection" $menuSection "pagePaths" $pagePaths "class" $class "from" $.from) -}}
8  {{- end -}}
9{{- end -}}