Skip to content

Commit 0dfeb7b

Browse files
jayychoiclaude
andcommitted
feat: 카테고리 구조 개선 및 시리즈 사이드바 패딩 조정
- categories.ts: Python, Spring Security, Kubernetes 카테고리 추가 - categories.ts: Spring 그룹을 Linux 앞으로 이동 - categories.ts: Algorithm, Tool, Etc 그룹을 Misc 그룹으로 통합 - sidebar.tsx: 시리즈 목록을 div로 감싸고 py-2 → py-1.5로 조정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f2e5c05 commit 0dfeb7b

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

src/components/blog/sidebar.tsx

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -263,26 +263,28 @@ export default function Sidebar({
263263
시리즈가 없습니다.
264264
</p>
265265
) : (
266-
series.map((s) => {
267-
const href = `/blog/series/${s.name}`;
268-
const isActive = pathname === href;
269-
return (
270-
<Link
271-
key={s.name}
272-
href={href}
273-
className={`flex items-center justify-between rounded-md px-3 py-2 text-sm transition-colors ${
274-
isActive
275-
? "bg-accent-color/10 text-accent-color font-semibold"
276-
: "text-gray-600 dark:text-gray-400 hover:bg-accent hover:text-gray-900 dark:hover:text-gray-300"
277-
}`}
278-
>
279-
<span>{s.name}</span>
280-
<span className="text-muted-foreground text-xs">
281-
{s.count}
282-
</span>
283-
</Link>
284-
);
285-
})
266+
<div>
267+
{series.map((s) => {
268+
const href = `/blog/series/${s.name}`;
269+
const isActive = pathname === href;
270+
return (
271+
<Link
272+
key={s.name}
273+
href={href}
274+
className={`flex items-center justify-between rounded-md px-3 py-1.5 text-sm transition-colors ${
275+
isActive
276+
? "bg-accent-color/10 text-accent-color font-semibold"
277+
: "text-gray-600 dark:text-gray-400 hover:bg-accent hover:text-gray-900 dark:hover:text-gray-300"
278+
}`}
279+
>
280+
<span>{s.name}</span>
281+
<span className="text-muted-foreground text-xs">
282+
{s.count}
283+
</span>
284+
</Link>
285+
);
286+
})}
287+
</div>
286288
))}
287289
</nav>
288290
</aside>

src/lib/categories.ts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,26 @@ export const CATEGORY_GROUPS: CategoryGroup[] = [
2020
{ id: "java", label: "Java" },
2121
{ id: "kotlin", label: "Kotlin" },
2222
{ id: "rust", label: "Rust" },
23+
{ id: "python", label: "Python" },
2324
{ id: "cpp", label: "C++" },
2425
],
2526
},
26-
{
27-
label: "Linux",
28-
categories: [
29-
{ id: "linux", label: "Linux" },
30-
{ id: "arch-linux", label: "Arch Linux" },
31-
],
32-
},
3327
{
3428
label: "Spring",
3529
categories: [
3630
{ id: "spring-boot", label: "Spring Boot" },
3731
{ id: "spring-framework", label: "Spring Framework" },
3832
{ id: "spring-data", label: "Spring Data" },
33+
{ id: "spring-security", label: "Spring Security" }
3934
]
4035
},
36+
{
37+
label: "Linux",
38+
categories: [
39+
{ id: "linux", label: "Linux" },
40+
{ id: "arch-linux", label: "Arch Linux" },
41+
],
42+
},
4143
{
4244
label: "Database",
4345
categories: [
@@ -51,21 +53,16 @@ export const CATEGORY_GROUPS: CategoryGroup[] = [
5153
label: "DevOps",
5254
categories: [
5355
{ id: "docker", label: "Docker" },
56+
{ id: "kubernetis", label: "Kubernetes" },
5457
{ id: "github-actions", label: "GitHub Actions" },
5558
],
5659
},
5760
{
58-
label: "Algorithm",
59-
categories: [{ id: "algorithm", label: "알고리즘" }],
60-
},
61-
{
62-
label: "Tool",
63-
categories: [{ id: "nvim", label: "Neovim" }],
64-
},
65-
{
66-
label: "Etc",
61+
label: "Misc",
6762
categories: [
63+
{ id: "algorithm", label: "알고리즘" },
6864
{ id: "blog2", label: "블로그 만들기 v2" },
65+
{ id: "nvim", label: "Neovim" },
6966
{ id: "retrospective", label: "회고" },
7067
{ id: "opensource", label: "오픈소스" },
7168
{ id: "etc", label: "기타" },

0 commit comments

Comments
 (0)