From 8cd04d9ceb137959e22529c7523f2a4335819dc7 Mon Sep 17 00:00:00 2001 From: saicaca Date: Sat, 7 Dec 2024 18:42:05 +0800 Subject: [PATCH] fix: fix TOC highlight appearing on pages without a TOC --- src/components/widget/TOC.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widget/TOC.astro b/src/components/widget/TOC.astro index 78a1d9e3..004ace3b 100644 --- a/src/components/widget/TOC.astro +++ b/src/components/widget/TOC.astro @@ -52,8 +52,8 @@ const maxLevel = siteConfig.toc.depth; }]}>{removeTailingHash(heading.text)} )} -
+