- 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。









