[#8] Fix section highlighting

This commit is contained in:
Anastasiya Shamray 2023-05-23 18:33:59 +03:00
parent dd500e1b2b
commit 9878c1dcaf

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