Custom layout

This commit is contained in:
2024-08-06 08:11:16 -07:00
parent 129b64a0fb
commit b821279497
2 changed files with 7 additions and 15 deletions

View File

@ -8,14 +8,14 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "🪴 Quartz 4.0", pageTitle: "ART SPS (Special Production Sites)",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
analytics: { analytics: {
provider: "plausible", provider: "plausible",
}, },
locale: "en-US", locale: "en-US",
baseUrl: "quartz.jzhao.xyz", baseUrl: "localhost:5051",
ignorePatterns: ["private", "templates", ".obsidian"], ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created", defaultDateType: "created",
theme: { theme: {

View File

@ -6,10 +6,7 @@ export const sharedPageComponents: SharedLayout = {
head: Component.Head(), head: Component.Head(),
header: [], header: [],
footer: Component.Footer({ footer: Component.Footer({
links: { links: {},
GitHub: "https://github.com/jackyzha0/quartz",
"Discord Community": "https://discord.gg/cRFFHYye7t",
},
}), }),
} }
@ -17,21 +14,16 @@ export const sharedPageComponents: SharedLayout = {
export const defaultContentPageLayout: PageLayout = { export const defaultContentPageLayout: PageLayout = {
beforeBody: [ beforeBody: [
Component.Breadcrumbs(), Component.Breadcrumbs(),
Component.ArticleTitle(),
Component.ContentMeta(), Component.ContentMeta(),
Component.TagList(),
], ],
left: [ left: [
Component.PageTitle(), Component.PageTitle(),
Component.MobileOnly(Component.Spacer()), Component.MobileOnly(Component.Spacer()),
Component.Search(), Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()), Component.DesktopOnly(Component.Explorer()),
], ],
right: [ right: [
Component.Graph(), Component.Darkmode(),
Component.DesktopOnly(Component.TableOfContents()),
Component.Backlinks(),
], ],
} }
@ -39,11 +31,11 @@ export const defaultContentPageLayout: PageLayout = {
export const defaultListPageLayout: PageLayout = { export const defaultListPageLayout: PageLayout = {
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()], beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
left: [ left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()), Component.MobileOnly(Component.Spacer()),
Component.Search(), Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()), Component.DesktopOnly(Component.Explorer()),
], ],
right: [], right: [
Component.Darkmode(),
],
} }