From d68f26a74fbe64421c362fbe46e6312c18108397 Mon Sep 17 00:00:00 2001 From: saicaca Date: Sun, 18 Feb 2024 18:24:00 +0800 Subject: [PATCH] fix: minor fixes --- src/components/Navbar.astro | 2 +- src/components/misc/Markdown.astro | 2 +- src/layouts/Layout.astro | 2 +- src/layouts/MainGridLayout.astro | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 279766e..82fb0bc 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -19,7 +19,7 @@ let links: NavBarLink[] = navBarConfig.links.map((item: NavBarLink | LinkPreset)
- +
{siteConfig.title} diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index 4b0021d..dfb46bb 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -73,7 +73,7 @@ const className = Astro.props.class; direction: rtl display: inline-block margin-right: 1rem - width: 1.375rem + width: 1rem color: rgba(255, 255, 255, 0.25) pre background: var(--codeblock-bg) !important diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 43936c2..1695a7c 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -18,7 +18,7 @@ interface Props { let { title, banner } = Astro.props; -const isHomePage = pathsEqual(Astro.url.pathname, '/') || pathsEqual(Astro.url.pathname, '/page/1'); +const isHomePage = pathsEqual(Astro.url.pathname, '/'); const testPathName = Astro.url.pathname; diff --git a/src/layouts/MainGridLayout.astro b/src/layouts/MainGridLayout.astro index 7e3cfbe..a09eac6 100644 --- a/src/layouts/MainGridLayout.astro +++ b/src/layouts/MainGridLayout.astro @@ -13,7 +13,7 @@ interface Props { } const { title, banner } = Astro.props -const isHomePage = pathsEqual(Astro.url.pathname, '/') || pathsEqual(Astro.url.pathname, '/page/1') +const isHomePage = pathsEqual(Astro.url.pathname, '/') const enableBanner = siteConfig.banner.enable ---