alexandria/quartz.layout.ts

54 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-12-29 02:59:54 -08:00
import { PageLayout, SharedLayout } from "./quartz/cfg";
import * as Component from "./quartz/components";
2024-12-29 02:11:31 -08:00
// components shared across all pages
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [],
afterBody: [],
footer: Component.Footer({
links: {
2024-12-29 02:59:54 -08:00
"Source Code": "https://code.youwen.dev/youwen5/alexandria",
2024-12-29 02:11:31 -08:00
},
}),
2024-12-29 02:59:54 -08:00
};
2024-12-29 02:11:31 -08:00
// 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(),
],
2024-12-29 02:59:54 -08:00
};
2024-12-29 02:11:31 -08:00
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
2024-12-29 02:59:54 -08:00
beforeBody: [
Component.Breadcrumbs(),
Component.ArticleTitle(),
Component.ContentMeta(),
],
2024-12-29 02:11:31 -08:00
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
],
right: [],
2024-12-29 02:59:54 -08:00
};