- README.md: restructure Preview section into Static + Dev modes with feature comparison table; mention juice inlining and live reload - CONTRIBUTING.md: update Development Setup with Go/Node.js requirements, static vs dev preview workflows, Juice reference - AGENTS.md: add dev command to subcommand list, document tools/server/ directory, update Build Tool section - docs/CONTRIBUTING.*.md (5 languages): add dev server section, Node.js requirement, live reload description - docs/README.*.md (5 languages): add dev mode to Preview section - docs/images/README.md: update capture instructions for dev server Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2.7 KiB
2.7 KiB
Gitea 邮件模板
为自托管 Gitea 实例精心设计、面向不同受众的邮件模板集合。
110 个模板文件 — 10 种视觉风格,每种 11 种邮件类型
设计理念
大多数自托管 Gitea 实例使用默认的纯文本邮件模板。本项目提供了开箱即用、视觉精美的替代方案——每种方案都针对特定社区或受众设计,您可以选择最适合您用户的风格。
每个模板都是直接替换。所有 Go 模板变量、翻译键和 Gitea 数据上下文完全兼容。无需补丁、无需插件、无需 fork。
风格画廊
图片为 600px 宽截图,来自在线预览。截图方法参见 images/README.md。
安装
选择一种风格,将 mail/ 目录复制到 Gitea 自定义模板路径:
cp -r themes/horizon/mail/* /var/lib/gitea/custom/templates/mail/
systemctl restart gitea
切换风格只需覆盖文件,无需更改配置。
预览
静态模式:
cd tools && go run . preview all
然后打开 preview/index.html。
开发服务器(实时重载 + Juice CSS 内联):
cd tools && go run . dev # 需要 Node.js
# → http://localhost:3456
兼容性
- Gitea 1.21+,100% 变量兼容,仅使用内置函数和官方翻译键
许可证
MIT — 详见 LICENSE。









