</h2>
{{- with index site.Menus $menuID }}
<ul id="submenu" class="s selected">
- {{- partial "inline/menu/tree.html" (dict "pages" $page.Site.MainSections "current $page) }}
+ {{- partial "inline/menu/tree.html" (dict "pages" $page.Site.Sections "current" $page) }}
</ul>
{{- end }}
<ul class="page-tree">
{{- range $pages }}
- {{- $isCurrent := $current.IsCurrent . -}}
- {{- $isAncestor := $current.IsAncestor . -}}
+
+ {{- $isCurrent := eq . $current -}}
+ {{- $isAncestor := $current.IsDescendant . -}}
<li
class="
) }}
{{- end }}
</li>
+
{{- end }}
</ul>
{{- end }}