From 17e69a533d75baca6b11701874cb3f6cf8a48ef0 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Sun, 21 Apr 2024 18:49:23 +0800 Subject: [PATCH] fixed hamburger menu and edit link --- src/components/blocks/CommunityLinks.astro | 4 ++-- src/components/blocks/navBar.astro | 13 +++++++---- src/components/blocks/verticalNav.astro | 25 +++++++++++++--------- src/components/ui/SearchModal.astro | 8 +------ 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/components/blocks/CommunityLinks.astro b/src/components/blocks/CommunityLinks.astro index faf397f..278d243 100644 --- a/src/components/blocks/CommunityLinks.astro +++ b/src/components/blocks/CommunityLinks.astro @@ -1,11 +1,11 @@ --- -const currentUrl = Astro.url.pathname; +const currentUrl = Astro.url.pathname.slice(0, -1) + ".md"; ---