- Split monolithic build-preview.go into modular packages: tools.go (entry), cli/ (list/create/delete/preview commands), config/ (JSON loading), preview/ (rendering engine, funcs, locale) - Extract all template metadata into data/templates_config.json as single source of truth — no hardcoded template data in Go - Replace hand-rolled CLI parsing with github.com/urfave/cli/v2 - Add sensible defaults for --folder (../themes) and --config (./data/templates_config.json) — most commands now run bare - Add type-coercing gt/lt/ge/le template funcs for JSON float64 - Fix AppUrl to gitea.com matching official template convention - rendered.js now exports __REGISTRY__ and __PARAMS__ alongside __RENDERED__ — preview/index.html reads all from single source - Cross-validate all 11 template data contexts against official Gitea source (services/mailer/*.go + templates/mail/*.tmpl) - Update all docs (README, AGENTS, CONTRIBUTING, 5 languages) to reflect new CLI workflow with create scaffolding command Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
1.8 KiB
Markdown
51 lines
1.8 KiB
Markdown
# Gitea 메일 템플릿
|
|
|
|
[Gitea](https://about.gitea.com) 인스턴스를 위한 메일 템플릿 컬렉션.
|
|
|
|
> **110 파일 — 10 스타일, 각 11종류**
|
|
|
|
---
|
|
|
|
## 스타일 갤러리
|
|
|
|
| 미리보기 | 스타일 | 대상 | 특징 |
|
|
|---|---|---|---|
|
|
|  | **Horizon** | 엔터프라이즈 | Blue accent, slate, centred cards |
|
|
|  | **Terminal** | 개발자 | Dark mode, monospace, green CLI |
|
|
|  | **Ember** | 커뮤니티 | Warm amber, rounded, inclusive |
|
|
|  | **Bloom** | 크리에이티브 | Frosted glass, soft blue light |
|
|
|  | **Heritage** | 교육/연구 | Navy and gold, serif, classic |
|
|
|  | **Neon** | 게임/Web3 | Cyberpunk neon, pink and cyan |
|
|
|  | **Mono** | 디자인/편집 | Swiss brutalist, black-white-red |
|
|
|  | **Terra** | 지속가능성 | Warm earth tones, organic textures |
|
|
|  | **Ink** | 출판/뉴스 | Editorial print, navy and gold |
|
|
|  | **Aurora** | 프리미엄SaaS | Ethereal gradients, purple and teal |
|
|
|
|
> 이미지는 [라이브 프리뷰](../preview/index.html)에서 캡처한 600px 너비 스크린샷입니다. 캡처 방법은 [images/README.md](images/README.md)를 참조하세요.
|
|
|
|
[**라이브 프리뷰**](../preview/index.html)
|
|
|
|
---
|
|
|
|
## 설치
|
|
|
|
```bash
|
|
cp -r themes/horizon/mail/* /var/lib/gitea/custom/templates/mail/
|
|
systemctl restart gitea
|
|
```
|
|
|
|
## 프리뷰
|
|
|
|
```bash
|
|
cd tools && go run . preview all
|
|
```
|
|
그런 다음 `preview/index.html` 열기.
|
|
|
|
## 호환성
|
|
|
|
- **Gitea 1.21+**, 100% 호환, 내장 함수만 사용
|
|
|
|
## 라이선스
|
|
|
|
MIT — [LICENSE](../LICENSE).
|