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}/둜 μžλ™ μƒμ„±λ©λ‹ˆλ‹€.

Β© 2023. All rights reserved.

Powered by Hydejack v9.1.6