<a class="s selected" href="{{ site.Home.RelPermalink }}">Home</a>
</h2>
<ul id="submenu" class="submenu selected">
- {{- partial "inline/menu/tree.html" (dict "pages" $page.Site.Sections "current" $page) }}
+ {{- partial "inline/menu/tree.html" (dict "pages" $page.Site.Sections "page" $page) }}
{{- define "_partials/inline/menu/tree.html" }}
- {{- $current := .current -}}
+ {{- $page := .page }}
{{- range .pages }}
- {{- $isCurrent := eq . $current -}}
- {{- $isAncestor := $current.IsDescendant . -}}
- <li class="s{{ if or .Pages .Sections}} sub{{ end }}{{ if not (or (eq $current .) ($current.IsDescendant .))}} off{{ end }}">
+ {{- $isCurrent := eq . $page -}}
+ {{- $isAncestor := $page.IsDescendant . -}}
+ <li class="s{{ if or .Pages .Sections}} sub{{ end }}{{ if not (or (eq $page .) ($page.IsDescendant .))}} off{{ end }}">
<!--
th:with="
child=${pos == len},
{{- if .Pages }}
{{- partial "inline/menu/tree.html" (dict
"pages" .Pages
- "current" $current
+ "page" $page
) }}
{{- end }}
</ul>