Jacky Zhao
2023-07-04 ab9da02c60c962128820e6874e6f07c98bc3dda7
quartz.config.ts
@@ -4,12 +4,7 @@
const sharedPageComponents = {
  head: Component.Head(),
  header: [
    Component.PageTitle({ title: "🪴 Quartz 4.0" }),
    Component.Spacer(),
    Component.Search(),
    Component.Darkmode()
  ],
  header: [],
  footer: Component.Footer({
    authorName: "Jacky",
    links: {
@@ -25,11 +20,15 @@
    Component.ReadingTime(),
    Component.TagList(),
  ],
  left: [],
  left: [
    Component.PageTitle(),
    Component.Search(),
    Component.Darkmode(),
    Component.DesktopOnly(Component.TableOfContents()),
  ],
  right: [
    Component.Graph(),
    Component.TableOfContents(),
    Component.Backlinks()
    Component.Backlinks(),
  ],
}
@@ -37,13 +36,23 @@
  beforeBody: [
    Component.ArticleTitle()
  ],
  left: [],
  left: [
    Component.PageTitle(),
    Component.Search(),
    Component.Darkmode()
  ],
  right: [],
}
const config: QuartzConfig = {
  configuration: {
    pageTitle: "🪴 Quartz 4.0",
    enableSPA: true,
    enablePopovers: true,
    analytics: {
      provider: 'plausible',
    },
    canonicalUrl: "quartz.jzhao.xyz",
    ignorePatterns: ["private", "templates"],
    theme: {
      typography: { // loaded from Google Fonts
@@ -90,7 +99,7 @@
      Plugin.Description(),
    ],
    filters: [
      Plugin.RemoveDrafts()
      Plugin.RemoveDrafts(),
    ],
    emitters: [
      Plugin.AliasRedirects(),
@@ -99,18 +108,20 @@
        ...contentPageLayout,
        pageBody: Component.Content(),
      }),
      Plugin.TagPage({
        ...sharedPageComponents,
        ...listPageLayout,
        pageBody: Component.TagContent(),
      }),
      Plugin.FolderPage({
        ...sharedPageComponents,
        ...listPageLayout,
        pageBody: Component.FolderContent(),
      }),
      Plugin.ContentIndex(), // you can exclude this if you don't plan on using popovers, graph view, or backlinks
      Plugin.CNAME({ domain: "quartz.jzhao.xyz" }) // set this to your final deployed domain
      Plugin.TagPage({
        ...sharedPageComponents,
        ...listPageLayout,
        pageBody: Component.TagContent(),
      }),
      Plugin.ContentIndex({
        enableSiteMap: true,
        enableRSS: true,
      }),
    ]
  },
}