CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
์ปค๋ฐ ๊ท์น
์ ์ ๋ ๋ฒจ ์ปค๋ฐ ๊ท์น ๋์ ์ด ๊ท์น์ ๋ฐ๋ฆ ๋๋ค.
ํ์: {type}: {ํ๊ตญ์ด ์ค๋ช
}
| ํ์ | ์ฉ๋ |
|---|---|
post | ์ ๋ธ๋ก๊ทธ ํฌ์คํธ ์์ฑ |
custom | ํ ๋ง/๊ธฐ๋ฅ ์ปค์คํฐ๋ง์ด์ง |
etc | ์ฌํ ํ์ด์ง, ๊ธฐํ ์ฝํ ์ธ |
fix | ๋ฒ๊ทธ/์ค๋ฅ ์์ |
์์: post: ์กฐ์ธ๊ณผ ์ธ๋ฑ์ค์ ๋ํ์ฌ, custom: ๊ฒ์ ๊ธฐ๋ฅ ์ถ๊ฐ
๋ช ๋ น์ด
๋ก์ปฌ ๊ฐ๋ฐ
bundle exec jekyll serve
bundle exec jekyll serve --livereload # ์ ์ฅ ์ ์๋ ๋ฐ์
๋น๋๋ง ํ ๋
bundle exec jekyll build
์ด๊ธฐ ์ธํ (gem ๋ฏธ์ค์น ์)
bundle install
# M2/M3 Mac posix-spawn ์ค๋ฅ ์:
bundle config build.posix-spawn --with-cflags="-Wno-incompatible-function-pointer-types"
bundle install
๋ก์ปฌ ์๋ฒ๋
http://localhost:4000์์ ์คํ๋ฉ๋๋ค.
์ํคํ ์ฒ
Hydejack v9 ํ ๋ง ๊ธฐ๋ฐ์ ๊ฐ์ธ ๋ธ๋ก๊ทธ ๋ฐ ์ฌํ ๊ฐ์ด๋ ์ฌ์ดํธ์ ๋๋ค. ํ ๋ง๋ฅผ ์๋น ๋ถ๋ถ ์ปค์คํ ํด์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
์ฝํ ์ธ ์ ํ
- ๋ธ๋ก๊ทธ ํฌ์คํธ:
_posts/blog/YYYY-MM-DD-slug.mdโ ํ์ค Jekyll ํฌ์คํธ. front matter์layout: post,category: blog,tags,image,comments์ฌ์ฉ. - ๋
๋ฆฝ ์ฌํ ํ์ด์ง:
danang/index.html,shanghai/index.htmlโ Jekyll ๋ ์ด์์์ ์ฌ์ฉํ์ง ์๋ ๋ ๋ฆฝ HTML ํ์ผ.noindex์ฒ๋ฆฌ๋์ด ๊ฒ์์์ง์ ๋ ธ์ถ๋์ง ์์. - ๊ฒ์ ๋ฐ์ดํฐ:
assets/sitedata.jsonโ Jekyll์ด Liquid ํ ํ๋ฆฟ์ผ๋ก ๋ ๋๋งํ๋ ํ์ผ. ์ ์ฒด ํฌ์คํธ ๋ชฉ๋ก(title, url, tags, description, date)์ JSON ๋ฐฐ์ด๋ก ์์ฑ. ํด๋ผ์ด์ธํธ ๊ฒ์์์ ์ฌ์ฉ.
์ปค์คํฐ๋ง์ด์ง ๋ ์ด์ด
Hydejack์ด ๋ฒ ์ด์ค ํ ๋ง๋ฅผ ์ ๊ณตํ๊ณ , ์ปค์คํ ๋ด์ฉ์ ์๋ ํ์ผ์ ์ง์ค๋์ด ์์ต๋๋ค:
_includes/body/menu.htmlโ ๋ค๋น๊ฒ์ด์ ๋ฐ ์ ์ฒด. ์ฌ์ด๋๋ฐ ํ ๊ธ, TOC ํ ๊ธ, ๊ฒ์ ํ ๊ธ ๋ฒํผ๊ณผ ๊ฒ์ ์ค๋ฒ๋ ์ด UI/JS๊ฐ ๋ชจ๋ ์ฌ๊ธฐ์ ์ธ๋ผ์ธ์ผ๋ก ๊ตฌํ๋์ด ์์. โK ๋จ์ถํค ํฌํจ._sass/my-style.scssโ ๋ค๋น๊ฒ์ด์ ๋ฐ ๋์ด, ์ปค์คํ ๋ฒํผ, ๊ฒ์ ์ค๋ฒ๋ ์ด, TOC ์คํ์ผ ๋ฑ SCSS ์ค๋ฒ๋ผ์ด๋._includes/my-scripts.htmlโ ์ถ๊ฐ<script>ํ๊ทธ ์ฃผ์ ํฌ์ธํธ (ํ์ฌsidebar-folder.js๋ก๋ ์ค)._includes/my-comments.htmlโ ์ปค์คํ ๋๊ธ ์น์ ์ฃผ์ ํฌ์ธํธ._data/โauthors.yml,social.yml,strings.yml,variables.yml๋ฑ ์ฌ์ดํธ ์ ์ญ ๋ฐ์ดํฐ.
๊ฒ์
ํด๋ผ์ด์ธํธ ์ฌ์ด๋ ์ ์ฉ. ๊ฒ์์ฐฝ์ ์ฒ์ ์ด ๋ /assets/sitedata.json์ ๋น๋๊ธฐ๋ก fetchํฉ๋๋ค. site.posts๋ง ์ธ๋ฑ์ฑ๋๋ฏ๋ก ๋
๋ฆฝ ํ์ด์ง(danang/, shanghai/)๋ ๊ฒ์ ๊ฒฐ๊ณผ์ ํฌํจ๋์ง ์์ต๋๋ค.
ํผ๋ง๋งํฌ ๊ตฌ์กฐ
/:categories/:year-:month-:day-:title/
_posts/blog/ ํฌ์คํธ๋ /blog/YYYY-MM-DD-slug/๋ก ๋ ๋๋ง๋ฉ๋๋ค.
ํ๊ทธ ๋ฐ ์นดํ ๊ณ ๋ฆฌ
- ์นดํ
๊ณ ๋ฆฌ:
_featured_categories/์ ์ ์ (์:blog.md) - ํ๊ทธ:
_featured_tags/์ ์ ์ (์:react.md,aws.md). ํ๊ทธ ํ์ด์ง๋/tag-{slug}/๋ก ์๋ ์์ฑ๋ฉ๋๋ค.