quartz/quartz.layout.ts
2025-11-11 13:32:41 +09:00

85 lines
2.2 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: {
},
}),
}
// components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = {
beforeBody: [
],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
//Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.LinksList({
links: {
"E-Mail": "mailto:riceset@icloud.com",
GitHub: "https://github.com/riceset",
LinkedIn: "https://www.linkedin.com/in/riceset/",
}
})),
Component.Explorer(),
],
right: [
Component.DesktopOnly(Component.RecentNotes({
title: "Latest",
limit: 8
})),
Component.MobileOnly(Component.RecentNotes({
title: "Latest",
limit: 1
})),
Component.MobileOnly(Component.LinksList({
links: {
GitHub: "https://github.com/riceset",
LinkedIn: "https://www.linkedin.com/in/riceset/",
}
}))
],
}
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
beforeBody: [],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
//Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.LinksList({
links: {
"E-Mail": "mailto:riceset@icloud.com",
GitHub: "https://github.com/riceset",
LinkedIn: "https://www.linkedin.com/in/riceset/",
}
})),
Component.Explorer(),
],
right: [
Component.DesktopOnly(Component.RecentNotes({
title: "Latest",
limit: 8
})),
Component.MobileOnly(Component.RecentNotes({
title: "Latest",
limit: 1
})),
Component.MobileOnly(Component.LinksList({
links: {
GitHub: "https://github.com/riceset",
LinkedIn: "https://www.linkedin.com/in/riceset/",
}
}))
],
}