Skip to content

Commit 96dc4dd

Browse files
Navbar layout type added with support for QuartzComponent
1 parent 944429f commit 96dc4dd

1 file changed

Lines changed: 30 additions & 29 deletions

File tree

quartz/cfg.ts

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ import { Theme } from "./util/theme"
88
export type Analytics =
99
| null
1010
| {
11-
provider: "plausible"
12-
host?: string
13-
}
11+
provider: "plausible"
12+
host?: string
13+
}
1414
| {
15-
provider: "google"
16-
tagId: string
17-
}
15+
provider: "google"
16+
tagId: string
17+
}
1818
| {
19-
provider: "umami"
20-
websiteId: string
21-
host?: string
22-
}
19+
provider: "umami"
20+
websiteId: string
21+
host?: string
22+
}
2323
| {
24-
provider: "goatcounter"
25-
websiteId: string
26-
host?: string
27-
scriptSrc?: string
28-
}
24+
provider: "goatcounter"
25+
websiteId: string
26+
host?: string
27+
scriptSrc?: string
28+
}
2929
| {
30-
provider: "posthog"
31-
apiKey: string
32-
host?: string
33-
}
30+
provider: "posthog"
31+
apiKey: string
32+
host?: string
33+
}
3434
| {
35-
provider: "tinylytics"
36-
siteId: string
37-
}
35+
provider: "tinylytics"
36+
siteId: string
37+
}
3838
| {
39-
provider: "cabin"
40-
host?: string
41-
}
39+
provider: "cabin"
40+
host?: string
41+
}
4242
| {
43-
provider: "clarity"
44-
projectId?: string
45-
}
43+
provider: "clarity"
44+
projectId?: string
45+
}
4646

4747
export interface GlobalConfiguration {
4848
pageTitle: string
@@ -85,6 +85,7 @@ export interface QuartzConfig {
8585
export interface FullPageLayout {
8686
head: QuartzComponent
8787
header: QuartzComponent[]
88+
navbar: QuartzComponent[]
8889
beforeBody: QuartzComponent[]
8990
pageBody: QuartzComponent
9091
afterBody: QuartzComponent[]
@@ -94,4 +95,4 @@ export interface FullPageLayout {
9495
}
9596

9697
export type PageLayout = Pick<FullPageLayout, "beforeBody" | "left" | "right">
97-
export type SharedLayout = Pick<FullPageLayout, "head" | "header" | "footer" | "afterBody">
98+
export type SharedLayout = Pick<FullPageLayout, "head" | "navbar" | "header" | "footer" | "afterBody">

0 commit comments

Comments
 (0)