Skip to content

Commit e8fafcd

Browse files
committed
Quartz sync: May 18, 2025, 6:36 PM
1 parent 6370182 commit e8fafcd

File tree

8 files changed

+117
-8
lines changed

8 files changed

+117
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ private/
1010
.replit
1111
replit.nix
1212
submodules/
13-
!content/

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
run: update
33
npx quartz sync
44

5+
sync:
6+
./obsidian-content-sync.sh
57

68
update:
7-
./obsidian-content-sync.sh
9+
npx quartz update
810

911
test:
1012
npx quartz build --serve
13+
14+
build:
15+
npx quartz build

content/About.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
description:
3+
created: 2025-05-18
4+
modified: 2025-05-18
5+
title: About
6+
---
7+
- YongMan "Yòmá" Kim
8+
- Specialized in Philosophy(Mind, Analytical)
9+
- Interested in AGI, Big-Data, Game, Optimization, ...
10+
- Colemak user on a minimalist 34-key Sweep split keyboard
11+
- A lifelong learner and Zettelkasten enthusiast, working in harmony with Obsidian
12+
13+
### Reach Me
14+
- [codeyoma@gmail.com](mailto:codeyoma@gmail.com)
15+
- [LinkedIn](https://www.linkedin.com/in/codeyoma)
16+
17+
### Log
18+
- [Blog](https://yoma.kr)
19+
- [PS](https://github.com/AI-Got-Rhythm/ps/tree/main/baekjoon)
20+
- [École 42](https://github.com/ecole42-yoma)
21+
- [Sweep Keyboard](https://github.com/codeyoma/sweep-nice-nano)
22+
- [Yòmá's Library](https://lib.yoma.kr/)
23+
24+
### Badge
25+
[![Yoma's Solved.ac profile](http://mazassumnida.wtf/api/v2/generate_badge?boj=hiatus4322)](https://solved.ac/profile/hiatus4322)

content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description:
3-
title: Intro
3+
title: Home
44
created: 2025-05-18
55
modified: 2025-05-18
66
comments: "false"

obsidian-content-sync.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@
44

55
basic_path="/Users/yoma/Library/Mobile Documents/com~apple~CloudDocs/Documents/Yoma"
66
allow_path=(
7+
"/∞ Akashic Records/attachments/"
78
"/& Areas/Computer Science/"
89
"/+ Resources/Note Taking/"
910
"/+ Resources/Philosophy/"
1011
"/+ Resources/Publish/index.md"
11-
"/∞ Akashic Records/attachments/"
12+
"/+ Resources/Publish/about.md"
1213
)
1314

1415
output_path=(
16+
"Attachments/"
1517
"Computer Science/"
1618
"Note Taking/"
1719
"Philosophy/"
1820
"index.md"
19-
"Attachments/"
21+
"About.md"
2022
)
2123

2224
pre_fix="./content/"

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: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,27 @@ export const defaultContentPageLayout: PageLayout = {
5353
],
5454
}),
5555
Component.Explorer({
56-
folderClickBehavior: "collapse"
56+
folderClickBehavior: "collapse",
57+
sortFn: (a, b) => {
58+
if (!a.isFolder && a.slug === 'About')
59+
return -99
60+
if (!b.isFolder && b.slug === 'About')
61+
return 99
62+
63+
64+
if ((!a.isFolder && !b.isFolder) || (a.isFolder && b.isFolder)) {
65+
return a.displayName.localeCompare(b.displayName, undefined, {
66+
numeric: true,
67+
sensitivity: "base",
68+
})
69+
}
70+
71+
if (!a.isFolder && b.isFolder) {
72+
return 1
73+
} else {
74+
return -1
75+
}
76+
},
5777
}),
5878
// Component.Explorer({
5979
// mapFn: (node) => {
@@ -89,7 +109,27 @@ export const defaultListPageLayout: PageLayout = {
89109
],
90110
}),
91111
Component.Explorer({
92-
folderClickBehavior: "collapse"
112+
folderClickBehavior: "collapse",
113+
sortFn: (a, b) => {
114+
if (!a.isFolder && a.slug === 'About')
115+
return -99
116+
if (!b.isFolder && b.slug === 'About')
117+
return 99
118+
119+
120+
if ((!a.isFolder && !b.isFolder) || (a.isFolder && b.isFolder)) {
121+
return a.displayName.localeCompare(b.displayName, undefined, {
122+
numeric: true,
123+
sensitivity: "base",
124+
})
125+
}
126+
127+
if (!a.isFolder && b.isFolder) {
128+
return 1
129+
} else {
130+
return -1
131+
}
132+
},
93133
}
94134
),
95135
],

quartz/styles/custom.scss

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,41 @@ footer {
1010
}
1111

1212
}
13+
14+
// body {
15+
// --outline-guideline-width: var(--size-2-1);
16+
// --outline-guideline-color: var(--color-accent);
17+
// --outline-item-height: calc(var(--nav-item-size) * 1.8);
18+
// }
19+
20+
// li {
21+
// position: relative;
22+
// }
23+
24+
25+
// li:hover>ul>li:has(~li:hover)::before {
26+
// content: "";
27+
// width: var(--outline-guideline-width);
28+
// position: absolute;
29+
// background-color: var(--outline-guideline-color);
30+
// top: calc(var(--outline-item-height) / 2 * -1);
31+
// left: calc(-2px - 2em - var(--size-4-4));
32+
// height: calc(100% - var(--outline-item-height) + var(--size-4-8) + 2px);
33+
// }
34+
35+
36+
// li:hover>ul>li:hover::before {
37+
// content: "";
38+
// position: absolute;
39+
// top: calc(var(--outline-item-height) / 2 * -1);
40+
// left: calc(-2px - 2em - var(--size-4-4));
41+
// bottom: calc(100% - (var(--outline-item-height) + var(--size-4-2)) / 2 + 1px);
42+
// width: calc(1em + var(--size-4-4) - 2px);
43+
// border-bottom-left-radius: var(--radius-m);
44+
// border-bottom: var(--outline-guideline-width) solid var(--outline-guideline-color);
45+
// border-left: var(--outline-guideline-width) solid var(--outline-guideline-color);
46+
// }
47+
48+
ul li {
49+
// list-style-type: disc;
50+
}

0 commit comments

Comments
 (0)