61 lines
2 KiB
TypeScript
61 lines
2 KiB
TypeScript
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
|
import * as Component from "./quartz/components"
|
|
import AetheriaAuthorMeta from "./quartz/components/AetheriaAuthorMeta"
|
|
import AetheriaMasthead from "./quartz/components/AetheriaMasthead"
|
|
import AetheriaOverviewSidebar from "./quartz/components/AetheriaOverviewSidebar"
|
|
import AetheriaThemeLock from "./quartz/components/AetheriaThemeLock"
|
|
|
|
// components shared across all pages
|
|
export const sharedPageComponents: SharedLayout = {
|
|
head: Component.Head(),
|
|
header: [AetheriaThemeLock(), AetheriaMasthead(), Component.Search()],
|
|
afterBody: [],
|
|
footer: Component.Footer({
|
|
links: {},
|
|
}),
|
|
}
|
|
|
|
// components for pages that display a single page (e.g. a single note)
|
|
export const defaultContentPageLayout: PageLayout = {
|
|
beforeBody: [
|
|
Component.ConditionalRender({
|
|
component: Component.Breadcrumbs({
|
|
rootName: "Aetheria",
|
|
showCurrentPage: false,
|
|
showRoot: false,
|
|
}),
|
|
condition: (page) => page.fileData.slug !== "index",
|
|
}),
|
|
Component.ConditionalRender({
|
|
component: Component.ArticleTitle(),
|
|
condition: (page) => !page.fileData.slug?.endsWith("/index") && page.fileData.slug !== "index",
|
|
}),
|
|
Component.ConditionalRender({
|
|
component: AetheriaAuthorMeta(),
|
|
condition: (page) => !page.fileData.slug?.endsWith("/index") && page.fileData.slug !== "index",
|
|
}),
|
|
Component.ConditionalRender({
|
|
component: Component.ContentMeta(),
|
|
condition: (page) => !page.fileData.slug?.endsWith("/index") && page.fileData.slug !== "index",
|
|
}),
|
|
],
|
|
afterBody: [],
|
|
left: [AetheriaOverviewSidebar()],
|
|
right: [
|
|
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({
|
|
rootName: "Aetheria",
|
|
showCurrentPage: false,
|
|
showRoot: false,
|
|
}),
|
|
],
|
|
left: [],
|
|
right: [],
|
|
}
|