2024-02-01 14:34:27 +00:00
|
|
|
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
|
|
|
import * as Component from "./quartz/components"
|
|
|
|
|
2024-03-24 13:17:12 +00:00
|
|
|
const Explorer = Component.Explorer({
|
|
|
|
folderDefaultState: "collapsed",
|
|
|
|
})
|
|
|
|
|
2024-02-01 14:34:27 +00:00
|
|
|
// components shared across all pages
|
|
|
|
export const sharedPageComponents: SharedLayout = {
|
|
|
|
head: Component.Head(),
|
|
|
|
header: [
|
2024-03-24 13:17:12 +00:00
|
|
|
Component.MobileOnly(Explorer),
|
2024-02-01 14:34:27 +00:00
|
|
|
],
|
|
|
|
footer: Component.Footer({
|
|
|
|
links: {
|
|
|
|
Git: "https://git.jrpotter.com/r/wiki",
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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(),
|
2024-03-24 13:17:12 +00:00
|
|
|
Component.DesktopOnly(Explorer),
|
2024-02-01 14:34:27 +00:00
|
|
|
],
|
|
|
|
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(),
|
2024-03-24 13:17:12 +00:00
|
|
|
Component.DesktopOnly(Explorer),
|
2024-02-01 14:34:27 +00:00
|
|
|
],
|
|
|
|
right: [],
|
|
|
|
}
|