Skip to content

Commit ed09bbb

Browse files
committed
feat: Implement clean URLs for production builds
1 parent f7fb152 commit ed09bbb

21 files changed

Lines changed: 369 additions & 88 deletions

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
# 정적 사이트 빌드
4040
- name: Build
41-
run: pnpm run build
41+
run: pnpm run build:prod
4242

4343
# 4. 빌드 결과물(public 디렉터리)을 gh-pages 브랜치에 배포
4444
- name: Deploy

content/template/template.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

content/개발 회고/Go로 정적 블로그 개발해 본 후기.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ fixed: false
77

88
![](/assets/gopher.png)
99

10-
작성 중...
10+
작성 중...

content/독서/행동하는 종이 건축 (반 시게루).md

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
date: 2025-09-13
3+
category: [에세이]
4+
published: true
5+
fixed: false
6+
---
7+
8+
> 단일 책임 원칙: 하나의 것은 하나의 일만 해야 한다.
9+
10+
실용주의 프로그래머를 읽으며, 단일 책임 원칙을 알게 되었다.
11+
12+
근래 단일 책임 원칙이 부서지고 있는 듯하다. AI가 각광받음에 따라, 개발자들이 모든 제품에 AI를 다 갖다 붙이는 중이다.
13+
14+
Apple도 Xcode 26에 AI를 붙여놓았고, T월드에도 AI 추천이 있으며, 카카오 뱅크에도 AI 챗봇이 있고, 한컴에도 AI가 있고, JetBrains IDE에도 AI가 범벅되어 있다.
15+
16+
나는 이렇게 생각한다. 모든 것은 '단일 책임 원칙'을 지켜야 한다. 도대체 왜 IDE에 AI 어시스트가 들어가야 하는가? 코드 작성에만 완전히 집중되어야 하는 것 아닌가? 개발 환경에만 완전히 집중되어야 하는 것 아닌가? 왜 굳이 쓸데없는, 이미 다른 환경을 통해 충분히 사용 가능한 AI를 거기에 굳이 붙여놓는 건가?
17+
18+
나는 이해가 되지 않는다. 프로그램은 계속해서 가벼워지고, 빨라지고, 버그가 fix 되어야 하며, 기능은 더욱더 간단해져야 한다. 근데 왜 요즘의 프로그램들은 기능은 점점 불어나며, 이로 인해 버그는 계속해서 증가하고, 앱은 느려지며, 프로그램은 기하급수적으로 큰 용량을 차지하게 되는가? 이는 결국 기능 블로트로 이어진다.
19+
20+
그리고 웃긴 것은, AI 랍시고 갖다 붙여 놓았으나, 막상 사용해 보면 LLM 모델에 대한 API 호출이다. 그냥 호출하고 필요에 맞게 조작해놓은 것을 AI랍시고 갖다 붙여놓은 거다. 자체 모델을 구축하려는 시도조차 하지 않는 데, 이게 뭔 AI 기능인가?
21+
22+
시대가 아무리 봐도 역행하는 듯하다. 단일 책임 원칙은 아마 10년 전이 더 잘 지켜진 듯하다. 하나의 것은 하나의 일만 해야 한다. 하나의 것들이 모여 새로운 일을 해야 한다.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2022-06-05
33
desc:
4-
category: [클린코드]
4+
category: [클린 코드]
55
published: true
66
fixed: false
77
---

layout/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
<a href="/" class="{{if eq .CurrentURL "/"}}active{{end}}">
5656
<span></span>
5757
</a>
58-
<a href="/about.html" class="{{if eq .CurrentURL "/about.html"}}active{{end}}">
58+
<a href="/about{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/about"}}active{{end}}">
5959
<span>어바웃</span>
6060
</a>
61-
<a href="/posts.html" class="{{if eq .CurrentURL "/posts.html"}}active{{end}}">
61+
<a href="/posts{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/posts"}}active{{end}}">
6262
<span>포스트</span>
6363
</a>
6464
</nav>

layout/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
<a href="/" class="{{if eq .CurrentURL "/"}}active{{end}}">
5656
<span></span>
5757
</a>
58-
<a href="/about.html" class="{{if eq .CurrentURL "/about.html"}}active{{end}}">
58+
<a href="/about{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/about"}}active{{end}}">
5959
<span>어바웃</span>
6060
</a>
61-
<a href="/posts.html" class="{{if eq .CurrentURL "/posts.html"}}active{{end}}">
61+
<a href="/posts{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/posts"}}active{{end}}">
6262
<span>포스트</span>
6363
</a>
6464
</nav>

0 commit comments

Comments
 (0)