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