Compare commits

...

1 commit

Author SHA1 Message Date
9878c1dcaf [#8] Fix section highlighting 2023-05-23 18:33:59 +03:00

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