This commit is contained in:
oldwinter 2024-04-11 00:12:16 +08:00
parent 0f176065ec
commit 4f6f71367d
2 changed files with 10 additions and 7 deletions

View File

@ -11,16 +11,14 @@ const config: QuartzConfig = {
pageTitle: "🌱 oldwinterの数字花园", pageTitle: "🌱 oldwinterの数字花园",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
analytics: { analytics: null,
provider: "plausible", locale: "zh-CN",
},
locale: "en-US",
baseUrl: "garden.oldwinter.top", baseUrl: "garden.oldwinter.top",
ignorePatterns: ["private", "templates", ".obsidian","Atlas","Calendar","Cards", "Extras","Sources", "Spaces"], ignorePatterns: ["private", "templates", ".obsidian","Atlas","Calendar","Cards", "Extras","Sources", "Spaces"],
defaultDateType: "created", defaultDateType: "modified",
theme: { theme: {
fontOrigin: "googleFonts", fontOrigin: "googleFonts",
cdnCaching: true, cdnCaching: false,
typography: { typography: {
header: "Schibsted Grotesk", header: "Schibsted Grotesk",
body: "Source Sans Pro", body: "Source Sans Pro",
@ -70,7 +68,10 @@ const config: QuartzConfig = {
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(), Plugin.Description(),
], ],
filters: [Plugin.RemoveDrafts()], filters: [
Plugin.RemoveDrafts(),
Plugin.ExplicitPublish()
],
emitters: [ emitters: [
Plugin.AliasRedirects(), Plugin.AliasRedirects(),
Plugin.ComponentResources(), Plugin.ComponentResources(),

View File

@ -27,6 +27,7 @@ export const defaultContentPageLayout: PageLayout = {
Component.Search(), Component.Search(),
Component.Darkmode(), Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()), Component.DesktopOnly(Component.Explorer()),
Component.RecentNotes({ limit: 5 }),
], ],
right: [ right: [
Component.Graph(), Component.Graph(),
@ -44,6 +45,7 @@ export const defaultListPageLayout: PageLayout = {
Component.Search(), Component.Search(),
Component.Darkmode(), Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()), Component.DesktopOnly(Component.Explorer()),
Component.RecentNotes({ limit: 5 }),
], ],
right: [], right: [],
} }