mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 05:55:42 -05:00
85 lines
2.2 KiB
TypeScript
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/",
|
|
}
|
|
}))
|
|
],
|
|
}
|