YAML frontmatter๋ Markdown ํ์ผ ์๋จ์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์ ์ํ๋ ๋ธ๋ก์
๋๋ค. ํ์ผ์ ๋งจ ์ฒ์์ ์์นํ๋ฉฐ, ์ผ์ค ๋์(---)๋ก ๊ฐ์ธ์ง YAML ํ์์ผ๋ก ์์ฑ๋ฉ๋๋ค. Jekyll์ ๋น๋กฏํ ์ ์ ์ฌ์ดํธ ์์ฑ๊ธฐ์์ ํ์ผ์ ํน๋ณํ๊ฒ ์ฒ๋ฆฌํ๋๋ก ์ง์ํ๋ ์ญํ ์ ํฉ๋๋ค.
ํด๋น ๊ฐ๋ ์ด ํ์ํ ์ด์
- ๋ฉํ๋ฐ์ดํฐ ๋ถ๋ฆฌ: ์ฝํ ์ธ ์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๋ช ํํ ๊ตฌ๋ถ
- ํ ํ๋ฆฟ ์ง์: ๋ ์ด์์, ํ ํ๋ฆฟ์์ ๋ณ์๋ก ์ ๊ทผ ๊ฐ๋ฅ
- ์๋ํ: ์ ์ ์ฌ์ดํธ ์์ฑ๊ธฐ๊ฐ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ์ผ ์ฒ๋ฆฌ
- ๊ตฌ์กฐํ: ๋ ์ง, ์นดํ ๊ณ ๋ฆฌ, ํ๊ทธ ๋ฑ์ ์ฒด๊ณ์ ์ผ๋ก ๊ด๋ฆฌ
AS-IS
๋ฉํ๋ฐ์ดํฐ๋ฅผ ๋ณธ๋ฌธ์ ํฌํจํ๊ฑฐ๋ ํ์ผ๋ช ์ผ๋ก๋ง ๊ด๋ฆฌํด์ผ ํฉ๋๋ค.
# My Blog Post
Date: 2025-12-21
Category: web-development
Tags: jekyll, yaml
๋ณธ๋ฌธ ๋ด์ฉ...TO-BE
Frontmatter๋ก ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ตฌ์กฐํํ์ฌ ๊ด๋ฆฌํฉ๋๋ค.
---
date: 2025-12-21
category: web-development
tags: [jekyll, yaml]
---
# My Blog Post
๋ณธ๋ฌธ ๋ด์ฉ...๊ธฐ๋ณธ ๋ฌธ๋ฒ
๊ตฌ์กฐ
Frontmatter๋ ํ์ผ์ ๋งจ ์ฒ์์ ์์นํด์ผ ํ๋ฉฐ, ์ผ์ค ๋์(---)๋ก ์์๊ณผ ๋์ ํ์ํฉ๋๋ค.
---
key: value
---
๋ณธ๋ฌธ ๋ด์ฉ์ฃผ์:
- ํ์ผ์ ์ฒซ ์ค๋ถํฐ ์์ํด์ผ ํจ
- ๋น ์ค์ด๋ ๊ณต๋ฐฑ์ด ์์ ์์ผ๋ฉด ์ ๋จ
- YAML ๋ฌธ๋ฒ์ ๋ฐ๋ผ์ผ ํจ
์ง์๋๋ ๋ฐ์ดํฐ ํ์
| ํ์ | ์์ | ์ค๋ช |
|---|---|---|
| ๋ฌธ์์ด | title: "My Title" | ๋ฐ์ดํ๋ ์ ํ์ฌํญ (ํน์๋ฌธ์ ํฌํจ ์ ํ์) |
| ์ซ์ | count: 42 | ์ ์ ๋๋ ์ค์ |
| ๋ถ๋ฆฐ | published: true | true/false |
| ๋ ์ง | date: 2025-12-21 | ISO 8601 ํ์ |
| ๋ฆฌ์คํธ | tags: [foo, bar] | ๋ฐฐ์ด ํํ |
| ๋ฆฌ์คํธ (์ฌ๋ฌ ์ค) | tags: - foo - bar | YAML ๋ฆฌ์คํธ ๋ฌธ๋ฒ |
| ๊ฐ์ฒด | author: name: John email: john@example.com | ์ค์ฒฉ ๊ตฌ์กฐ |
์์
๊ธฐ๋ณธ ์์:
---
title: Blogging Like a Hacker
layout: post
date: 2025-12-21
---
๋ณธ๋ฌธ ๋ด์ฉ๋ฆฌ์คํธ ์ฌ์ฉ:
---
categories: [web-development, tutorial]
tags:
- jekyll
- yaml
- markdown
---์ค์ฒฉ ๊ฐ์ฒด:
---
author:
name: John Doe
email: john@example.com
github: johndoe
---์ปค์คํ ๋ณ์:
---
food: Pizza
drink: Coffee
favorite_number: 42
---
<h1>My favorite food is {{ page.food }}</h1>์ค์ ์ฌ์ฉ ์์
Claude Code - Project Rules
Claude Code์ .claude/rules/*.md ํ์ผ์์ path-specific rules๋ฅผ ์ ์ํ ๋ frontmatter๋ฅผ ์ฌ์ฉํฉ๋๋ค.
---
paths:
- "src/**/*.ts"
- "lib/**/*.ts"
- "tests/**/*.test.ts"
---
# TypeScript Rules
- Use strict type checking
- No implicit any์ฌ๋ฌ ๊ฒฝ๋ก ํจํด:
---
paths:
- "src/**/*.{ts,tsx}"
- "{src,lib}/**/*.test.ts"
---
# Testing Rules
- All test files must use Jest
- Use descriptive test namesObsidian ๋ ธํธ
---
aliases: [alias1, alias2]
tags: [note, personal]
created: 2025-12-21
updated: 2025-12-21
---
# ๋
ธํธ ์ ๋ชฉ
๋
ธํธ ๋ด์ฉ...์ฃผ์์ฌํญ
YAML ๋ฌธ๋ฒ ์ค์
# โ ์๋ชป๋ ์์
---
title: My Title: With Colon # ์ฝ๋ก ์ด ํฌํจ๋ ๊ฒฝ์ฐ ๋ฐ์ดํ ํ์
---
# โ
์ฌ๋ฐ๋ฅธ ์์
---
title: "My Title: With Colon"
---๋ค์ฌ์ฐ๊ธฐ
# โ ์๋ชป๋ ์์ (ํญ ์ฌ์ฉ)
---
author:
name: John
---
# โ
์ฌ๋ฐ๋ฅธ ์์ (์คํ์ด์ค 2๊ฐ)
---
author:
name: John
---๋น frontmatter
์ผ๋ถ ์์คํ ์์๋ ๋น frontmatter๋ก๋ ํน๋ณ ์ฒ๋ฆฌ๋ฅผ ํ์ฑํํ ์ ์์ต๋๋ค.
---
---
๋ณธ๋ฌธ ๋ด์ฉBest Practices
๊ธฐ๋ณธ๊ฐ ์ค์
์์ฃผ ์ฌ์ฉํ๋ frontmatter ๋ณ์๋ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ์ ์ํ์ฌ ์ค๋ณต์ ์ค์ ๋๋ค.
Jekyll _config.yml:
defaults:
- scope:
path: "_posts"
type: posts
values:
layout: post
author: default_author๋ช ํํ ํค ์ด๋ฆ
# โ
์ข์ ์์
---
publication_date: 2025-12-21
author_name: John Doe
---
# โ ๋์ ์์
---
pd: 2025-12-21
an: John Doe
---์ผ๊ด๋ ๋ฐ์ดํฐ ํ์
# โ
์ข์ ์์ (์ผ๊ด๋ ๋ฆฌ์คํธ)
---
tags: [foo, bar, baz]
---
# โ ๋์ ์์ (ํผ์ฌ)
---
tags: foo, bar, baz # ๋ฌธ์์ด? ๋ฆฌ์คํธ?
---