Skip to content

Commit 944429f

Browse files
New Layout navbar added and components for displaying in it.
1 parent 58db520 commit 944429f

1 file changed

Lines changed: 23 additions & 18 deletions

File tree

quartz.layout.ts

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,67 @@ import * as Component from "./quartz/components"
33

44
// components shared across all pages
55
export const sharedPageComponents: SharedLayout = {
6+
navbar: [
7+
Component.PageTitle(),
8+
Component.MobileOnly(Component.Spacer()),
9+
Component.NavigationLinks({
10+
links: {
11+
Blogs: "/blogs",
12+
Github: "https://github.com/PrathameshDhande22/Java-Tutorial",
13+
"About Me": "https://github.com/PrathameshDhande22"
14+
}
15+
}),
16+
Component.Darkmode()
17+
],
618
head: Component.Head(),
7-
header: [],
19+
header: [
20+
21+
],
822
afterBody: [
9-
Component.MobileOnly(Component.Explorer({
10-
title: "Patterns",
11-
folderClickBehavior: "collapse",
12-
folderDefaultState: "collapsed",
13-
}))
1423
],
1524
footer: Component.Footer({
1625
links: {
1726
GitHub: "https://prathameshdhande22.github.io/Java-Tutorial/",
1827
LinkedIn: "https://www.linkedin.com/in/prathamesh-dhande-3a039721a/"
19-
// TODO: Later Add the Notes Links here
2028
},
2129
}),
2230
}
2331

2432
// components for pages that display a single page (e.g. a single note)
2533
export const defaultContentPageLayout: PageLayout = {
2634
beforeBody: [
35+
2736
Component.Breadcrumbs(),
2837
Component.ArticleTitle(),
2938
Component.ContentMeta(),
3039
Component.TagList(),
3140
],
3241
left: [
33-
Component.PageTitle(),
34-
Component.MobileOnly(Component.Spacer()),
3542
Component.Search(),
36-
Component.Darkmode(),
3743
Component.DesktopOnly(
3844
Component.Explorer({
39-
title: "Patterns"
45+
title: "Patterns",
46+
folderDefaultState: "open",
4047
})
4148
)
4249
],
4350
right: [
4451
Component.TableOfContents(),
4552
Component.Backlinks(),
4653
Component.DesktopOnly(Component.RecentNotes({
47-
limit: 2
54+
limit: 2,
55+
title: "Recent Blogs"
4856
}))
49-
// Component.Graph({ globalGraph: { zoom: true }, localGraph: {} }),
5057
]
5158
}
5259

5360
// components for pages that display lists of pages (e.g. tags or folders)
5461
export const defaultListPageLayout: PageLayout = {
5562
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
5663
left: [
57-
Component.PageTitle(),
58-
Component.MobileOnly(Component.Spacer()),
59-
Component.Search(),
60-
Component.Darkmode(),
61-
Component.DesktopOnly(Component.Explorer()),
64+
Component.Explorer({
65+
title: "Patterns"
66+
})
6267
],
6368
right: [],
6469
}

0 commit comments

Comments
 (0)