Commit 593566a
Changed files (4)
src
src/layouts/MainLayout.astro
@@ -3,6 +3,7 @@ import Navbar from '@components/Navbar.astro';
import SideToolBar from '@components/SideToolBar.astro';
import Sidebar from '@components/Sidebar.astro';
import GlobalLayout from './GlobalLayout.astro';
+import PageFooter from '@components/PageFooter.astro';
interface Props {
title?: string;
@@ -23,5 +24,5 @@ const { title, description, lang } = Astro.props;
<slot />
</div>
</div>
- <div id="footer"></div>
+ <PageFooter />
</GlobalLayout>
src/types/config.ts
@@ -4,6 +4,7 @@ export type SiteConfig = {
title: string;
subtitle: string;
lang: string;
+ copyrightYear: number;
favicon: (string | { src: string; theme?: 'light' | 'dark' })[];
postsPerPage: number;
};
src/config.ts
@@ -13,6 +13,7 @@ export const siteConfig: SiteConfig = {
subtitle: '',
lang: 'zh_CN', // "en" | "zh_CN" | "zh_TW"
favicon: [''],
+ copyrightYear: 2025,
postsPerPage: 10,
};