基于 Hugo 与 Hugo Theme Stack 构建的法语个人博客
jeremielitzler.fr-with-hugo-theme-stack — Hugo 博客模板
作者 JeremieLitzler
这是一个使用 Hugo 与 Hugo Theme Stack 搭建的法语个人博客站点源码,通过 Hugo Modules 加载主题,并配置了自动部署与主题更新流程。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 Hugo Modules 加载主题,便于主题版本管理
配置 GitHub Action 自动部署到公开 GitHub Pages
包含每日自动更新主题的定时任务
提供 XML 输出校验脚本,检查 sitemap.xml 与 index.xml 的格式与 URL
模板详细介绍
该仓库是 JeremieLitzler 个人法语博客 jeremielitzler.fr 的站点源码,基于 Hugo 静态站点生成器,并使用 Hugo Theme Stack 作为主题。主题通过 Hugo Modules 功能加载,仓库本身提供基础的主题结构与配置。仓库包含 GitHub Action,用于将站点自动部署到公开的 GitHub Pages;同时设置了一个定时任务,每天自动更新主题。README 还说明了手动更新主题的步骤,包括初始化 Prettier 的 Go 模板格式化配置,以及在推送前运行 hugo build。
在部署方面,README 提到若使用 Netlify 之外的静态托管服务,需要确保构建机器已安装 Go,并覆盖构建命令手动安装 Go,同时在环境变量 HUGO_VERSION 中指定 Hugo 版本(使用最新的 Hugo extended 版本)。仓库还包含一个零依赖的 Node 脚本 scripts/validate-xml-output.mjs,用于在构建后检查 public/sitemap.xml 与 public/index.xml:确认 <?xml 声明位于文件开头(无 BOM、空白或空行)、标签结构良好,以及 sitemap 中的 <loc> URL 为站点基础 URL 下的绝对地址。该脚本通过 npm run build:ci 在 Hugo 构建后运行,使格式错误的文件导致部署失败。
适合你的项目吗?
适用场景
- 搭建个人法语博客并发布文章
- 参考 Hugo Modules 加载主题的配置方式
- 在 GitHub Pages 上自动部署 Hugo 站点
- 为 Hugo 站点增加构建后的 XML 输出校验
适合人群
- 使用 Hugo 搭建个人博客的开发者
- 需要法语博客站点模板的用户
- 希望参考 Hugo 自动部署与主题更新流程的人
- 需要在构建流程中校验 sitemap 与 RSS 输出的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
主题通过 Hugo Modules 加载,需确保构建环境已安装 Go。
- 2
使用 Netlify 之外的静态托管时,需覆盖构建命令手动安装 Go,并在 HUGO_VERSION 环境变量中指定 Hugo extended 版本。
- 3
推送前需运行 hugo build,并确保 Prettier 已配置 Go 模板格式化插件。
- 4
可通过 npm run build:ci 在本地运行 XML 输出校验脚本。
- 5
仓库采用 MIT 许可,但演示图片、字体、图标等第三方素材需按各自许可核对。
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 若使用 Netlify 之外的静态托管服务,构建机器必须安装 Go,并需覆盖构建命令手动安装 Go,否则无法完成构建。
- 构建时必须在环境变量 HUGO_VERSION 中指定 Hugo 版本,且需使用 Hugo extended 版本。
- 推送代码前必须先运行 hugo build,否则可能推送未构建的内容。
- XML 校验脚本通过 npm run build:ci 在 Hugo 构建后运行,若 sitemap.xml 或 index.xml 格式错误将导致部署失败。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
If you want to build this site using another static page hosting, you need to make sure they have Go installed in the machine.
README 原文
Make sure also to specify Hugo version in the environment variable `HUGO_VERSION` (Use the latest version of Hugo extended)
README 原文
**MAKE SURE TO run `hugo build` before pushing !**
README 原文
https://github.com/JeremieLitzler/jeremielitzler.fr-with-hugo-theme-stack/blob/master/LICENSEhttps://github.com/JeremieLitzler/jeremielitzler.fr-with-hugo-theme-stack/blob/master/README.mdIt runs after the Hugo build via `npm run build:ci` (the Netlify build command), so a malformed file fails the deploy.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-31
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: 661bd0fc9535c482e044f5b61c83469301e862be47cf25a465e4de3bb7408489
2026-10-03T21:22:03.512Z
来源文件 / 仓库# Hugo Theme Stack Starter Template
This is a quick start template for [Hugo theme Stack](https://github.com/CaiJimmy/hugo-theme-stack). It uses [Hugo modules](https://gohugo.io/hugo-modules/) feature to load the theme.
It comes with a basic theme structure and configuration. GitHub action has been set up to deploy the theme to a public GitHub page automatically. Also, there's a cron job to update the theme automatically everyday.
## Updating theme manually
Make sure Prettier is setup with the extension to setup `.html` files mixing Golang code with HTML.
In this repo, it is included:
```bash
bash init-prettier-golang-html-formatter.sh
```
Then, add a `.prettierrc` file with:
```json
{
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"goTemplateBracketSpacing": true,
"bracketSameLine": true
}
},
{
"files": ["*.js", "*.ts"],
"options": {
"useTabs": true,
"printWidth": 120,
"singleQuote": true
}
}
]
}
```
**MAKE SURE TO run `hugo build` before pushing !**
Source: [gohugo Forum](https://discourse.gohugo.io/t/formatter-for-go-templates/38403)
### Deploy somewhere else than Netilf?
If you want to build this site using another static page hosting, you need to make sure they have Go installed in the machine.
You need to overwrite build command to install manually Go:
```sh
amazon-linux-extras install golang1.11 && hugo --gc --minify
```

Make sure also to specify Hugo version in the environment variable `HUGO_VERSION` (Use the latest version of Hugo extended):

## Validating generated XML outputs
A mismatched Hugo version once emitted a blank line before the `<?xml` declaration in `sitemap.xml`, which made browsers refuse to render it (the HTTP status and `Content-Type` were fine, hiding the problem).
To catch this on every build, `scripts/validate-xml-output.mjs` is a zero-dependency Node script that checks `public/sitemap.xml` and `public/index.xml` for:
- the `<?xml` declaration being the first bytes (no BOM, whitespace, or blank line),
- well-formedness (balanced tags), and
- sitemap `<loc>` URLs being absolute under the site base URL.
It runs after the Hugo build via `npm run build:ci` (the Netlify build command), so a malformed file fails the deploy. Run it locally with:
```sh
npm run build:ci
```
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-PaperMod
PaperMod 是 Hugo 生态里知名度较高的主题之一,定位很明确:给博客和轻量作品集站点提供一套干净、响应式的阅读界面。
Hugo · 作品集

LoveIt
❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
Hugo · 博客

hugo-coder
A minimalist blog theme for hugo.
Hugo · 博客

blowfish
Personal Website & Blog Theme for Hugo
Hugo · 博客

hugo-paper
🪺 A simple, clean, customizable Hugo theme
Hugo · 博客

hextra
Hextra 是一个 Hugo 主题,定位在文档站与博客之间:既提供侧边栏导航、目录、面包屑、分页这类文档站结构,也能承载博客内容。
Hugo · 文档
