quartz/quartz.layout.ts
Henry Zhang a826df3216 chore: update Node.js version and dependencies, modify footer links, and adjust typography
- Updated Node.js version in .node-version and package.json to v22.
- Updated regex and regex-recursion dependencies to version 5.1.1 in pnpm-lock.yaml.
- Changed typography fonts in quartz.config.ts to "Noto Sans Simplified Chinese".
- Updated footer links in quartz.layout.ts and quartz/components/Footer.tsx to reflect new community links.
- Made minor formatting adjustments in base.scss for consistency.
2024-12-27 12:31:55 +08:00

53 lines
1.5 KiB
TypeScript

import { PageLayout, SharedLayout } from "./quartz/cfg"
import * as Component from "./quartz/components"
// components shared across all pages
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [],
afterBody: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/cssdao",
"Discord": "https://discord.gg/Yn26BZ5x",
"X(Twitter)": "https://x.com/cssdao",
"Telegram": "https://t.me/brotherblockchain",
},
}),
}
// components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = {
beforeBody: [
Component.Breadcrumbs(),
Component.ArticleTitle(),
Component.ContentMeta(),
Component.TagList(),
],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
],
right: [
Component.Graph(),
Component.DesktopOnly(Component.TableOfContents()),
Component.Backlinks(),
],
}
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
],
right: [],
}