From bdc9e03932c34c548b7509ffb504d936e64a12c9 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 a69fccd..352739d 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -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}}" > {{ safeHTML .Params.Pre }} -- 2.45.2