Fix section highlighting #2

Closed
a.shamray wants to merge 1 commit from a.shamray/dot-hugo:fix/section_highlighting into frostfs_design_version

View file

@ -94,7 +94,7 @@ $currentNodeFileUniqueID = .UniqueID }}{{ end }}
data-nav-id="{{.Permalink}}"
title="{{.Title}}"
class="sidelist
{{if eq $fileUniqueID $currentNodeFileUniqueID}}active{{end}}"
{{if (or (eq $fileUniqueID $currentNodeFileUniqueID) (eq $currentNode.Type .Page.Title))}}active{{end}}"
>
<a href="{{.Permalink}}">
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML