fix: minor fixes
This commit is contained in:
parent
af29b9160f
commit
d68f26a74f
|
@ -19,7 +19,7 @@ let links: NavBarLink[] = navBarConfig.links.map((item: NavBarLink | LinkPreset)
|
||||||
<div transition:animate="none" class:list={[
|
<div transition:animate="none" class:list={[
|
||||||
className,
|
className,
|
||||||
"card-base sticky top-0 overflow-visible max-w-[var(--page-width)] h-[4.5rem] rounded-t-none mx-auto flex items-center justify-between px-4"]}>
|
"card-base sticky top-0 overflow-visible max-w-[var(--page-width)] h-[4.5rem] rounded-t-none mx-auto flex items-center justify-between px-4"]}>
|
||||||
<a href="/page/1" class="btn-plain h-[3.25rem] px-5 font-bold rounded-lg active:scale-95">
|
<a href="/" class="btn-plain h-[3.25rem] px-5 font-bold rounded-lg active:scale-95">
|
||||||
<div class="flex flex-row text-[var(--primary)] items-center text-md">
|
<div class="flex flex-row text-[var(--primary)] items-center text-md">
|
||||||
<Icon name="material-symbols:home-outline-rounded" size={"1.75rem"} class="mb-1 mr-2" />
|
<Icon name="material-symbols:home-outline-rounded" size={"1.75rem"} class="mb-1 mr-2" />
|
||||||
{siteConfig.title}
|
{siteConfig.title}
|
||||||
|
|
|
@ -73,7 +73,7 @@ const className = Astro.props.class;
|
||||||
direction: rtl
|
direction: rtl
|
||||||
display: inline-block
|
display: inline-block
|
||||||
margin-right: 1rem
|
margin-right: 1rem
|
||||||
width: 1.375rem
|
width: 1rem
|
||||||
color: rgba(255, 255, 255, 0.25)
|
color: rgba(255, 255, 255, 0.25)
|
||||||
pre
|
pre
|
||||||
background: var(--codeblock-bg) !important
|
background: var(--codeblock-bg) !important
|
||||||
|
|
|
@ -18,7 +18,7 @@ interface Props {
|
||||||
|
|
||||||
let { title, banner } = Astro.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;
|
const testPathName = Astro.url.pathname;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ interface Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, banner } = Astro.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
|
const enableBanner = siteConfig.banner.enable
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue