작품 파일명 연-월-제목 + 작품별 이미지 폴더(assets/img/<slug>/)

This commit is contained in:
koreafood committed 2026-10-31 11:18:55 +09:00
1 parent 4dff91b483
commit 767b2a30a3
19 files changed
+163 -40

No files matched your search

+12 -8
View File
@@ -21,10 +21,14 @@ bash scripts/rollback.sh 2f22e71 # 특정 커밋 시점으로 내용 되돌
## 작품 하나 추가하기
1. 사진을 `assets/img/` 에 넣는다 (파일명은 영문 소문자-하이픈, 예: `magnolia-02.jpg`)
2. `content/products/magnolia-02.md` 를 만든다 — front matter 스키마는 `CLAUDE.md` 3절
3. `python3 build.py`
4. `bash scripts/deploy.sh`
1. slug 를 정한다 — **`연-월-영문제목`** (예: `2026-11-magnolia-tea-mat`). 파일명 = slug = URL
2. 사진을 **`assets/img/2026-11-magnolia-tea-mat/`** 폴더에 넣는다 (대표 `cover.jpg`, 추가 컷은 `detail-01.jpg`)
3. `content/products/2026-11-magnolia-tea-mat.md` 를 만든다 — front matter 스키마는 `CLAUDE.md` 3절
4. `python3 build.py`
5. `bash scripts/deploy.sh`
작품마다 폴더 하나. 사진이 많아져도 작품별로 모여 있고, 파일명 앞의 연-월로 시기가 바로 보인다.
공정 사진처럼 여러 곳에서 쓰는 이미지는 `assets/img/process/` 에 둔다.
목록과 상세 페이지는 자동으로 생긴다. 코드는 건드리지 않는다.
@@ -51,7 +55,7 @@ bash scripts/studio.sh # http://localhost:8081
- `배포까지` 체크하면 저장과 동시에 `scripts/deploy.sh` 실행
- 상단 `이력 / 되돌리기` = 최근 커밋 목록과 `git revert`
- 작품 상세 페이지의 `이 작품 고치기` 버튼은 localhost 에서만 보인다 (운영 사이트에서는 hidden)
- 이미지: JPG 를 끌어다 놓으면 `assets/img/` 에 저장되고 경로가 자동 입력된다
- 이미지: JPG 를 끌어다 놓으면 `assets/img/<슬러그>/` 에 저장되고 경로가 자동 입력된다 (PNG 는 빌드가 못 읽어 거부)
- **AI 프롬프트**: 입력창에 말로 시키면 부제·본문·소재·규격을 고친 제안을 보여준다. 아무것도 자동 저장되지 않고 `폼에 적용` 또는 `적용하고 저장`을 눌러야 반영된다
- 모드 `새 작품 초안` = 제목·가격·규격을 주면 원고와 slug 를 만들어 폼에 열어준다(이미지·슬러그 확인 후 저장)
- 모델 `deepseek-flash`. 키는 `~/.config/teamat-studio/ai.json`(600) 또는 `DEEPSEEK_API_KEY`
@@ -84,9 +88,9 @@ Claude Code 에 말로 지시하면 위 파일들을 알아서 고친다. 예:
| 파일 | 원본 | 라이선스 |
|---|---|---|
| `work-whitework.jpg` | Linen towel with drawn threadwork and whitework embroidery (Wikimedia Commons) | Public domain |
| `work-green-linen.jpg` | Japanese flat silk embroidery on leno-weave fabric / Ineffablebookkeeper | CC BY-SA 4.0 |
| `craft-jogakbo.jpg` | Wrapping cloth (bojagi), Korea / Hiart | CC0 |
| `2026-10-whitework-tea-mat/cover.jpg` | Linen towel with drawn threadwork and whitework embroidery (Wikimedia Commons) | Public domain |
| `2026-10-cedar-tea-mat/cover.jpg`, `process/stitch.jpg` | Japanese flat silk embroidery on leno-weave fabric / Ineffablebookkeeper | CC BY-SA 4.0 |
| `2026-10-kit-first-stitch/cover.jpg`, `process/fabric.jpg` | Wrapping cloth (bojagi), Korea / Hiart | CC0 |
실제 작품 사진으로 교체하면 해당 표기와 `site.json` 의 `image_credits` 도 함께 정리한다.