Skip to content

Commit edb0352

Browse files
committed
Quartz sync: May 20, 2025, 6:36 PM
1 parent 89ddd18 commit edb0352

File tree

9 files changed

+444
-410
lines changed

9 files changed

+444
-410
lines changed

content/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ comments: "false"
2020
- [[- Note Taking]]
2121
- [[- Philosophy]]
2222
- #moc
23+
2324
# Basic Guide
2425
- prefix of `🗺️`
2526
- MOC file

quartz.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const config: QuartzConfig = {
9595
Plugin.Favicon(),
9696
Plugin.NotFoundPage(),
9797
// Comment out CustomOgImages to speed up build time
98-
Plugin.CustomOgImages(),
98+
// Plugin.CustomOgImages(),
9999
],
100100
},
101101
}

quartz.layout.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export const sharedPageComponents: SharedLayout = {
77
header: [
88
],
99
afterBody: [
10+
Component.Backlinks(),
11+
],
12+
beforeFooter: [
1013
Component.Comments({
1114
provider: 'giscus',
1215
options: {
@@ -87,7 +90,6 @@ export const defaultContentPageLayout: PageLayout = {
8790
right: [
8891
Component.Graph(),
8992
Component.DesktopOnly(Component.TableOfContents()),
90-
Component.Backlinks(),
9193
],
9294
}
9395

quartz/cfg.ts

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -5,88 +5,89 @@ import { PluginTypes } from "./plugins/types"
55
import { Theme } from "./util/theme"
66

77
export type Analytics =
8-
| null
9-
| {
10-
provider: "plausible"
11-
host?: string
8+
| null
9+
| {
10+
provider: "plausible"
11+
host?: string
1212
}
13-
| {
14-
provider: "google"
15-
tagId: string
13+
| {
14+
provider: "google"
15+
tagId: string
1616
}
17-
| {
18-
provider: "umami"
19-
websiteId: string
20-
host?: string
17+
| {
18+
provider: "umami"
19+
websiteId: string
20+
host?: string
2121
}
22-
| {
23-
provider: "goatcounter"
24-
websiteId: string
25-
host?: string
26-
scriptSrc?: string
22+
| {
23+
provider: "goatcounter"
24+
websiteId: string
25+
host?: string
26+
scriptSrc?: string
2727
}
28-
| {
29-
provider: "posthog"
30-
apiKey: string
31-
host?: string
28+
| {
29+
provider: "posthog"
30+
apiKey: string
31+
host?: string
3232
}
33-
| {
34-
provider: "tinylytics"
35-
siteId: string
33+
| {
34+
provider: "tinylytics"
35+
siteId: string
3636
}
37-
| {
38-
provider: "cabin"
39-
host?: string
37+
| {
38+
provider: "cabin"
39+
host?: string
4040
}
41-
| {
42-
provider: "clarity"
43-
projectId?: string
41+
| {
42+
provider: "clarity"
43+
projectId?: string
4444
}
4545

4646
export interface GlobalConfiguration {
47-
pageTitle: string
48-
pageTitleSuffix?: string
49-
/** Whether to enable single-page-app style rendering. this prevents flashes of unstyled content and improves smoothness of Quartz */
50-
enableSPA: boolean
51-
/** Whether to display Wikipedia-style popovers when hovering over links */
52-
enablePopovers: boolean
53-
/** Analytics mode */
54-
analytics: Analytics
55-
/** Glob patterns to not search */
56-
ignorePatterns: string[]
57-
/** Whether to use created, modified, or published as the default type of date */
58-
defaultDateType: ValidDateType
59-
/** Base URL to use for CNAME files, sitemaps, and RSS feeds that require an absolute URL.
60-
* Quartz will avoid using this as much as possible and use relative URLs most of the time
61-
*/
62-
baseUrl?: string
63-
theme: Theme
64-
/**
65-
* Allow to translate the date in the language of your choice.
66-
* Also used for UI translation (default: en-US)
67-
* Need to be formatted following BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
68-
* The first part is the language (en) and the second part is the script/region (US)
69-
* Language Codes: https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
70-
* Region Codes: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
71-
*/
72-
locale: ValidLocale
47+
pageTitle: string
48+
pageTitleSuffix?: string
49+
/** Whether to enable single-page-app style rendering. this prevents flashes of unstyled content and improves smoothness of Quartz */
50+
enableSPA: boolean
51+
/** Whether to display Wikipedia-style popovers when hovering over links */
52+
enablePopovers: boolean
53+
/** Analytics mode */
54+
analytics: Analytics
55+
/** Glob patterns to not search */
56+
ignorePatterns: string[]
57+
/** Whether to use created, modified, or published as the default type of date */
58+
defaultDateType: ValidDateType
59+
/** Base URL to use for CNAME files, sitemaps, and RSS feeds that require an absolute URL.
60+
* Quartz will avoid using this as much as possible and use relative URLs most of the time
61+
*/
62+
baseUrl?: string
63+
theme: Theme
64+
/**
65+
* Allow to translate the date in the language of your choice.
66+
* Also used for UI translation (default: en-US)
67+
* Need to be formatted following BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
68+
* The first part is the language (en) and the second part is the script/region (US)
69+
* Language Codes: https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
70+
* Region Codes: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
71+
*/
72+
locale: ValidLocale
7373
}
7474

7575
export interface QuartzConfig {
76-
configuration: GlobalConfiguration
77-
plugins: PluginTypes
76+
configuration: GlobalConfiguration
77+
plugins: PluginTypes
7878
}
7979

8080
export interface FullPageLayout {
81-
head: QuartzComponent
82-
header: QuartzComponent[]
83-
beforeBody: QuartzComponent[]
84-
pageBody: QuartzComponent
85-
afterBody: QuartzComponent[]
86-
left: QuartzComponent[]
87-
right: QuartzComponent[]
88-
footer: QuartzComponent
81+
head: QuartzComponent
82+
header: QuartzComponent[]
83+
beforeBody: QuartzComponent[]
84+
pageBody: QuartzComponent
85+
afterBody: QuartzComponent[]
86+
beforeFooter: QuartzComponent[]
87+
left: QuartzComponent[]
88+
right: QuartzComponent[]
89+
footer: QuartzComponent
8990
}
9091

9192
export type PageLayout = Pick<FullPageLayout, "beforeBody" | "left" | "right">
92-
export type SharedLayout = Pick<FullPageLayout, "head" | "header" | "footer" | "afterBody">
93+
export type SharedLayout = Pick<FullPageLayout, "head" | "header" | "footer" | "afterBody" | "beforeFooter">

0 commit comments

Comments
 (0)