mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
config update
This commit is contained in:
parent
44731aa5ec
commit
4a9300b67b
@ -9,19 +9,26 @@ import * as Plugin from "./quartz/plugins"
|
||||
const config: QuartzConfig = {
|
||||
configuration: {
|
||||
pageTitle: "🌱 oldwinterの数字花园",
|
||||
enableSPA: true,
|
||||
enableSPA: false,
|
||||
pageTitleSuffix: "",
|
||||
enablePopovers: true,
|
||||
analytics: {
|
||||
provider: "plausible",
|
||||
provider: "google",
|
||||
tagId: "G-11MD77L81V",
|
||||
},
|
||||
locale: "zh-CN",
|
||||
baseUrl: "garden.oldwinter.top",
|
||||
ignorePatterns: ["private", "templates", ".obsidian","Atlas","Calendar","Cards", "Extras","Sources", "Spaces"],
|
||||
defaultDateType: "published",
|
||||
generateSocialImages: false,
|
||||
ignorePatterns: ["private", "templates", ".obsidian","Atlas","Calendar","Cards", "Extras","Sources", "Spaces", "**/*.excalidraw.md"],
|
||||
defaultDateType: "modified",
|
||||
generateSocialImages: {
|
||||
colorScheme: "lightMode", // what colors to use for generating image, same as theme colors from config, valid values are "darkMode" and "lightMode"
|
||||
width: 1200, // width to generate with (in pixels)
|
||||
height: 630, // height to generate with (in pixels)
|
||||
excludeRoot: false, // wether to exclude "/" index path to be excluded from auto generated images (false = use auto, true = use default og image)
|
||||
},
|
||||
theme: {
|
||||
fontOrigin: "googleFonts",
|
||||
cdnCaching: false,
|
||||
cdnCaching: true,
|
||||
typography: {
|
||||
header: "Schibsted Grotesk",
|
||||
body: "Source Sans Pro",
|
||||
@ -57,7 +64,7 @@ const config: QuartzConfig = {
|
||||
transformers: [
|
||||
Plugin.FrontMatter(),
|
||||
Plugin.CreatedModifiedDate({
|
||||
priority: ["frontmatter"],
|
||||
priority: ["frontmatter", "filesystem"],
|
||||
}),
|
||||
Plugin.SyntaxHighlighting({
|
||||
theme: {
|
||||
@ -66,11 +73,12 @@ const config: QuartzConfig = {
|
||||
},
|
||||
keepBackground: false,
|
||||
}),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false, enableCheckbox: true }),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
Plugin.TableOfContents(),
|
||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||
Plugin.Description(),
|
||||
Plugin.Latex({ renderEngine: "katex" }),
|
||||
],
|
||||
filters: [Plugin.RemoveDrafts()],
|
||||
emitters: [
|
||||
@ -82,6 +90,8 @@ const config: QuartzConfig = {
|
||||
Plugin.ContentIndex({
|
||||
enableSiteMap: true,
|
||||
enableRSS: true,
|
||||
rssLimit: 10,
|
||||
rssFullHtml: true
|
||||
}),
|
||||
Plugin.Assets(),
|
||||
Plugin.Static(),
|
||||
|
||||
@ -26,13 +26,13 @@ export const defaultContentPageLayout: PageLayout = {
|
||||
Component.MobileOnly(Component.Spacer()),
|
||||
Component.Search(),
|
||||
Component.Darkmode(),
|
||||
Component.DesktopOnly(Component.RecentNotes({ limit: 5, showTags: false })),
|
||||
Component.DesktopOnly(Component.Explorer()),
|
||||
Component.DesktopOnly(Component.RecentNotes({ limit: 5 })),
|
||||
],
|
||||
right: [
|
||||
Component.Graph(),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
Component.Backlinks(),
|
||||
Component.Graph(),
|
||||
],
|
||||
}
|
||||
|
||||
@ -44,8 +44,8 @@ export const defaultListPageLayout: PageLayout = {
|
||||
Component.MobileOnly(Component.Spacer()),
|
||||
Component.Search(),
|
||||
Component.Darkmode(),
|
||||
Component.DesktopOnly(Component.RecentNotes({ limit: 5, showTags: false })),
|
||||
Component.DesktopOnly(Component.Explorer()),
|
||||
Component.DesktopOnly(Component.RecentNotes({ limit: 5 })),
|
||||
],
|
||||
right: [],
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user