2026-03-03 19:05:51 -08:00
|
|
|
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
|
|
|
|
import * as Component from "./quartz/components"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Quartz layout configuration for project documentation
|
|
|
|
|
* See https://quartz.jzhao.xyz/layout
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Components shared across all pages
|
|
|
|
|
export const sharedPageComponents: SharedLayout = {
|
|
|
|
|
head: Component.Head(),
|
|
|
|
|
header: [],
|
|
|
|
|
afterBody: [],
|
|
|
|
|
footer: Component.Footer({
|
|
|
|
|
links: {
|
2026-03-03 20:28:15 -08:00
|
|
|
"Repository": "${REPO_LINK}",
|
2026-03-03 19:05:51 -08:00
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Components for pages that list posts (folder pages, tag pages)
|
|
|
|
|
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(),
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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: [],
|
|
|
|
|
}
|