Skip to content

Commit 274cec6

Browse files
committed
Quartz sync: May 17, 2025, 12:39 PM
1 parent 2237408 commit 274cec6

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

quartz.layout.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ export const defaultListPageLayout: PageLayout = {
6464
{ Component: Component.Darkmode() },
6565
],
6666
}),
67-
Component.Explorer(),
67+
// Component.Explorer(),
68+
Component.Explorer({
69+
mapFn: (node) => {
70+
if (node.isFolder) {
71+
node.displayName = "📁 " + node.displayName
72+
}
73+
},
74+
})
6875
],
6976
right: [],
7077
}

quartz/components/Explorer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default ((userOpts?: Partial<Options>) => {
9494
<line x1="4" x2="20" y1="18" y2="18" />
9595
</svg>
9696
</button>
97-
<button
97+
{/* <button
9898
type="button"
9999
class="title-button explorer-toggle desktop-explorer"
100100
data-mobile={false}
@@ -115,7 +115,11 @@ export default ((userOpts?: Partial<Options>) => {
115115
>
116116
<polyline points="6 9 12 15 18 9"></polyline>
117117
</svg>
118-
</button>
118+
</button> */}
119+
<div class="desktop-explorer">
120+
<h2>{opts.title ?? i18n(cfg.locale).components.explorer.title}</h2>
121+
</div>
122+
119123
<div class="explorer-content" aria-expanded={false}>
120124
<OverflowList class="explorer-ul" />
121125
</div>

quartz/styles/custom.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
// put your custom CSS here!
44
footer {
5+
margin-bottom: 2rem;
6+
margin-top: 2rem;
7+
58
& p {
69
font-size: medium;
710
}

0 commit comments

Comments
 (0)