alephbeth-ai/AI-Watchtower
GitHub: alephbeth-ai/AI-Watchtower
一个基于 Hugo 构建的双语 AI 安全研究博客,专注于 LLM 系统的 prompt injection、MCP 漏洞、Agent 威胁建模及安全加固指南。
Stars: 0 | Forks: 0
# AI Watchtower
AI 安全研究博客:涵盖 prompt injection、MCP 漏洞、agent 威胁模型,以及针对基于 LLM 系统的强化安全指南。
双语(FR / EN),使用 [Hugo](https://gohugo.io/) 和 [PaperMod](https://github.com/adityatelange/hugo-PaperMod) 主题构建,搭配自定义主页和内部定制的“AlephBeth”样式。每次向 `main` 分支推送代码时,都会通过 GitHub Actions 自动部署到 GitHub Pages。
🌐 https://aleph-beth.github.io/AI-Watchtower/
## 项目结构
```
.
├── hugo.toml # Hugo configuration (multilingual FR/EN, menus, params)
├── archetypes/default.md # Frontmatter template for new posts
├── content/
│ ├── fr/ # French site (homepage, posts/, search)
│ └── en/ # English site (homepage, posts/, search)
├── layouts/
│ ├── index.html # Custom homepage: "Latest" strip + theme sections
│ ├── partials/ # Header (AlephBeth wordmark) + head/footer extensions
│ └── shortcodes/ # checklist, details, stat, widget
├── assets/
│ ├── css/extended/ # AlephBeth brand styling (alephbeth.css) + interactive.css
│ └── js/interactive.js
├── static/
│ ├── favicon.svg
│ └── widgets/ # Standalone HTML teaching widgets (embedded via {{< widget >}})
├── themes/PaperMod/ # Theme (git submodule)
└── .github/workflows/hugo.yml # GitHub Pages deploy workflow
```
## 添加新的双语文章
为每种语言分别创建一个文件(确保日期和 slug 保持一致):
```
hugo new content/fr/posts/YYYY-MM-DD-mon-article.md
hugo new content/en/posts/YYYY-MM-DD-my-article.md
```
然后设置网站所依赖的 frontmatter 规范:
- **`translationKey`** — 两个文件中的值**必须相同**,用于关联语言对(语言切换器会使用此字段)。
- **`theme`** — 可选值为 `fundamentals`、`agents`、`poisoning` 或 `hardening`。此字段决定了文章在主页上显示的所属版块(每个主题都有其专属的品牌颜色)。其他值将被归入“Other”版块。
- **`categories`** — 单一的类型标签,在不同语言间**对应一致**:`Fondamentaux`/`Fundamentals`、`Vulgarisation`/`Explainer`、`Analyse`/`Analysis`、`Durcissement`/`Hardening`、`Stratégie`/`Strategy`。
- **`summary`** — 一到两句话的摘要;将显示在主页的卡片上。
主页(`layouts/index.html`)会在“Latest”区块列出最新发布的文章,然后按 `theme` 对其余文章进行分组。
## 本地预览(可选)
PaperMod 主题是一个 git submodule,因此在构建网站之前必须确保其存在——否则 Hugo 会生成**空白页面**(请参阅[使用子模块克隆](#clone-with-submodules))。在安装了 Hugo (extended) 的情况下:
```
hugo server --buildDrafts
```
然后打开 http://localhost:1313/。
## 使用子模块克隆
```
git clone --recurse-submodules https://github.com/aleph-beth/AI-Watchtower.git
```
如果在克隆时未使用 `--recurse-submodules`(或者你正在使用全新的 git worktree):
```
git submodule update --init --recursive
```
## 启用 GitHub Pages
在 GitHub → Settings → Pages → **Source: GitHub Actions** 中进行设置。位于 `.github/workflows/hugo.yml` 的工作流会递归检出子模块,使用 Hugo extended 进行构建,并发布结果。
## 许可证
代码:请参阅 [LICENSE](LICENSE)。文章内容:© aleph-beth,保留所有权利,除非在文章中另有说明。
标签:Hugo, 人工智能安全, 博客网站, 合规性, 后端开发, 多模态安全, 数据可视化, 静态网站