diff --git a/assets/style.css b/assets/style.css index 275a808..e191c3b 100644 --- a/assets/style.css +++ b/assets/style.css @@ -830,6 +830,29 @@ blockquote p { margin: 0; } +/* -- AI Notice -- */ + +.ai-notice { + margin: 1.5rem 0; + padding: 0.875rem 1.25rem; + background: #fffbeb; + border: 1px solid #f59e0b; + border-left: 4px solid #f59e0b; + border-radius: 6px; + color: #92400e; + font-size: 0.95rem; + line-height: 1.6; +} + +@media (prefers-color-scheme: dark) { + .ai-notice { + background: #1c1a0e; + border-color: #b45309; + border-left-color: #f59e0b; + color: #fcd34d; + } +} + /* -- Code Blocks -- */ .code-block-container { diff --git a/content/contributing.smd b/content/contributing.smd index 83c7840..6c35c45 100644 --- a/content/contributing.smd +++ b/content/contributing.smd @@ -27,6 +27,7 @@ Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文 .custom = { .math = true, // 引入 Katex 数学公式支持 .mermaid = true, // 引入 mermaid 图表渲染支持 + .ai_generated = true, // 标注文章使用了 AI 辅助创作 }, --- ``` @@ -42,6 +43,24 @@ Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文 - [Getting Started | WebP | Google for Developers](https://developers.google.com/speed/webp/docs/using) +## [AI 辅助创作说明]($heading.id('ai-generated')) + +如果文章内容使用了 AI(如 ChatGPT、Claude、Copilot 等)辅助生成,请在 frontmatter 中添加 `ai_generated = true`: + +```ziggy +.custom = { + .ai_generated = true, +}, +``` + +设置后,文章末尾会自动显示一个提示横幅,提醒读者该内容包含 AI 辅助生成的内容,需结合自身判断阅读。 + +**注意事项:** + +- AI 生成的内容可能存在错误或不准确之处,请在发布前仔细校对 +- 作者对文章内容的准确性负责,AI 仅作为辅助工具 +- 鼓励在文章中说明 AI 的具体使用方式(如"使用 AI 辅助润色"、"使用 AI 生成初稿后人工校对"等) + ## [本地预览]($heading.id('local-preview')) 1. 安装 `zine`,方法见 [Quick Start](https://zine-ssg.io/quickstart/), diff --git a/layouts/post.shtml b/layouts/post.shtml index 203f5c2..02ba632 100644 --- a/layouts/post.shtml +++ b/layouts/post.shtml @@ -68,6 +68,9 @@
+