From 9878c1dcaf0aba83cb444e142cc690dac781dce5 Mon Sep 17 00:00:00 2001 From: Anastasiya Shamray Date: Tue, 23 May 2023 18:33:59 +0300 Subject: [PATCH] [#8] Fix section highlighting --- layouts/partials/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 93bbd47..44f35ea 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -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}}" > {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML