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

View File

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