2023-08-06 17:09:29 -07:00
|
|
|
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
2023-07-25 23:37:24 -07:00
|
|
|
import * as Component from "./quartz/components"
|
|
|
|
|
|
|
|
|
|
// components shared across all pages
|
2023-08-06 17:09:29 -07:00
|
|
|
export const sharedPageComponents: SharedLayout = {
|
2023-07-25 23:37:24 -07:00
|
|
|
head: Component.Head(),
|
|
|
|
|
header: [],
|
2024-07-09 19:09:31 -07:00
|
|
|
afterBody: [],
|
2023-07-25 23:37:24 -07:00
|
|
|
footer: Component.Footer({
|
|
|
|
|
links: {
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// components for pages that display a single page (e.g. a single note)
|
|
|
|
|
export const defaultContentPageLayout: PageLayout = {
|
2023-09-29 10:26:15 +02:00
|
|
|
beforeBody: [
|
2025-03-23 17:34:14 -07:00
|
|
|
Component.ConditionalRender({
|
|
|
|
|
component: Component.Breadcrumbs(),
|
|
|
|
|
condition: (page) => page.fileData.slug !== "index",
|
|
|
|
|
}),
|
2023-09-29 10:26:15 +02:00
|
|
|
Component.ArticleTitle(),
|
|
|
|
|
Component.ContentMeta(),
|
|
|
|
|
Component.TagList(),
|
|
|
|
|
],
|
2023-07-25 23:37:24 -07:00
|
|
|
left: [
|
|
|
|
|
Component.PageTitle(),
|
|
|
|
|
Component.MobileOnly(Component.Spacer()),
|
2025-03-11 14:56:43 -07:00
|
|
|
Component.Flex({
|
|
|
|
|
components: [
|
|
|
|
|
{
|
|
|
|
|
Component: Component.Search(),
|
|
|
|
|
grow: true,
|
|
|
|
|
},
|
|
|
|
|
{ Component: Component.Darkmode() },
|
2025-04-17 19:45:17 -07:00
|
|
|
{ Component: Component.ReaderMode() },
|
2025-03-11 14:56:43 -07:00
|
|
|
],
|
|
|
|
|
}),
|
2025-02-03 15:25:42 +01:00
|
|
|
Component.Explorer(),
|
2023-09-15 18:39:16 +02:00
|
|
|
],
|
|
|
|
|
right: [
|
|
|
|
|
Component.Graph(),
|
2023-07-25 23:37:24 -07:00
|
|
|
Component.DesktopOnly(Component.TableOfContents()),
|
2023-09-15 18:39:16 +02:00
|
|
|
Component.Backlinks(),
|
2023-07-25 23:37:24 -07:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// components for pages that display lists of pages (e.g. tags or folders)
|
|
|
|
|
export const defaultListPageLayout: PageLayout = {
|
2024-01-13 09:47:56 -08:00
|
|
|
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
|
2023-07-25 23:37:24 -07:00
|
|
|
left: [
|
|
|
|
|
Component.PageTitle(),
|
|
|
|
|
Component.MobileOnly(Component.Spacer()),
|
2025-03-12 11:24:28 -07:00
|
|
|
Component.Flex({
|
|
|
|
|
components: [
|
|
|
|
|
{
|
|
|
|
|
Component: Component.Search(),
|
|
|
|
|
grow: true,
|
|
|
|
|
},
|
|
|
|
|
{ Component: Component.Darkmode() },
|
|
|
|
|
],
|
|
|
|
|
}),
|
2025-02-03 15:25:42 +01:00
|
|
|
Component.Explorer(),
|
2023-07-25 23:37:24 -07:00
|
|
|
],
|
|
|
|
|
right: [],
|
|
|
|
|
}
|