From 18d1cdd1a5b4fd1cbbda309b72f4a8bf4b077416 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Fri, 20 Sep 2024 11:07:37 +0200 Subject: [PATCH] fix incorrectly hiding inpage navigation --- src/layouts/MarkdownLayout.astro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/MarkdownLayout.astro b/src/layouts/MarkdownLayout.astro index e03a14b..49bdb35 100644 --- a/src/layouts/MarkdownLayout.astro +++ b/src/layouts/MarkdownLayout.astro @@ -45,7 +45,7 @@ function createTagLink(tag: string) { // Generate the nested headings structure const nestedHeadings = buildNestedHeadings(headings); - +const noInPageNavigation = nestedHeadings.length === 0; --- -