[#8] Fix section highlighting

This commit is contained in:
Anastasiya Shamray 2023-05-23 18:33:59 +03:00
parent 95e99e3d4b
commit bdc9e03932

View file

@ -126,7 +126,7 @@
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 }}