mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
refactor: improve code quality
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
import Layout from "./Layout.astro";
|
||||
import Navbar from "@components/Navbar.astro";
|
||||
import SideBar from "@components/widget/SideBar.astro";
|
||||
import {pathsEqual} from "@utils/url-utils";
|
||||
import Footer from "@components/Footer.astro";
|
||||
import BackToTop from "@components/control/BackToTop.astro";
|
||||
import {siteConfig} from "@/config";
|
||||
// import {siteConfig} from "@/config";
|
||||
// import {pathsEqual} from "@utils/url-utils";
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
@@ -14,8 +14,8 @@ interface Props {
|
||||
}
|
||||
|
||||
const { title, banner, description } = Astro.props
|
||||
const isHomePage = pathsEqual(Astro.url.pathname, '/')
|
||||
const enableBanner = siteConfig.banner.enable
|
||||
// const isHomePage = pathsEqual(Astro.url.pathname, '/')
|
||||
// const enableBanner = siteConfig.banner.enable
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user