移植自 Tania Rascia 的同名 Oblate 主题,风格极简,面向博客写作
hugo-oblate-theme — Hugo 博客模板
作者 zapatran
基于 Tania Rascia 同名 Oblate 主题移植的 Hugo 极简博客主题,支持 RSS、代码高亮、Disqus 评论与多种短代码。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持 RSS 订阅与源代码语法高亮
内置 Disqus 评论,并可通过配置接入 emojicon 反馈
提供 alert、filename、mermaid 三类短代码,便于排版提示、标注代码文件名和绘制图表
导航栏社交图标基于 Font Awesome,通过 config.toml 的 social 区块配置
项目列表由 projects.json 定义,可展示项目名称、emoji、描述与链接
模板详细介绍
这是一个面向博客的 Hugo 主题,移植自 Tania Rascia 的同名 Oblate 主题,整体风格极简。仓库提供 exampleSite 示例站点,包含 config.toml 配置文件,可复制到 Hugo 站点根目录后按需修改。
功能方面,主题支持 RSS 订阅与源代码语法高亮,内置 Disqus 评论(在 config.toml 中填入 shortname 即可启用),并集成 emojicon 反馈(需配置 key)。导航栏可通过 config.toml 的 social 区块添加社交链接图标,图标字体使用 Font Awesome。
内容组织上,提供 about 页面用于自我介绍,可通过 hugo new --kind page 创建其他独立页面,通过 hugo new post/<name>.md 生成文章。项目列表由 projects.json 定义,字段包括 name、emoji、description、project 和 source。
主题提供三类短代码:blockquote 支持 alert、info、note、details、success 五种提示样式;filename 用于在代码块上方标注文件名;mermaid 用于嵌入 Mermaid 图表。
安装方式为在站点 themes 目录下 git clone,或作为 git submodule 添加;本地预览使用 hugo server,默认地址为 localhost:1313。使用前需确认 config.toml 中的 themesDir 指向正确的主题目录。主题以 MIT 许可发布,演示图片、字体、图标等第三方素材需单独核对许可。
适合你的项目吗?
适用场景
- 搭建以文字为主的个人博客并发布文章
- 为博客文章添加代码示例并启用语法高亮
- 在文章中使用提示框、文件名标注或 Mermaid 图表辅助说明
- 通过 Disqus 为博客文章开启读者评论
- 在站点中展示个人项目列表与社交链接
适合人群
- 使用 Hugo 构建静态博客的开发者
- 偏好极简排版、以文字内容为主的写作者
- 需要在文章中展示代码与技术图表的博主
- 希望快速接入 Disqus 评论和社交链接的个人站点
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在 Hugo 站点的 themes 目录下执行 git clone,或使用 git submodule add 将主题添加为子模块
- 2
将 exampleSite 中的 config.toml 复制到站点根目录,并确认 themesDir 指向正确的主题目录
- 3
在 config.toml 中填入 Disqus shortname 以启用评论,填入 emojicon key 以启用反馈
- 4
使用 hugo new post/<name>.md 创建文章,使用 hugo new --kind page <name>.md 创建独立页面
- 5
运行 hugo server 在 localhost:1313 本地预览站点
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- Disqus 评论为可选功能,需自行注册 Disqus 账号并将 shortname 填入 config.toml 才能启用;评论服务由第三方提供,可能受其自身条款与费用约束。
- emojicon 反馈为可选功能,需自行获取并填入 emojicon key 才能使用;该服务由外部第三方提供,使用前应核对其许可与费用。
- 导航栏社交图标依赖 Font Awesome 图标字体,该字体为第三方素材,其许可与使用条件需单独核对,不随主题的 MIT 许可一并授予。
- 仓库中的截图等演示图片属于第三方素材,其许可未在 README 中说明,需单独核对后方可用于正式站点。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Just add your Disqus-shortname to the [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml) and let readers respond to your blog posts.
README 原文
Just add your key to [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml) and get feedback from your visitors 😃.
README 原文
the theme is using the icon fonts [Font awesome](https://fortawesome.github.io/Font-Awesome/)
README 原文
https://github.com/zapatran/hugo-oblate-theme/blob/master/LICENSEhttps://github.com/zapatran/hugo-oblate-theme/blob/master/README.md
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2022-12-03
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: cd175352627687a2e88574f9c062dd908ecd865990ec7ed9c1a3f35de45573d4
2026-10-02T17:16:34.850Z
来源文件 / 仓库[](https://github.com/semantic-release/semantic-release)
# Oblate Theme
Oblate theme for hugo is a minimalistic theme for bloggers based on the theme of the same-named Oblate from [Tania Rascia](//github.com/taniarascia). Noteworthy features of this Hugo theme are the support for RSS feeds, syntax highlighting for source code.

## Installation
Inside the folder of your Hugo site, run:
```bash
$ cd themes
$ git clone https://github.com/zapatran/hugo-oblate-theme
```
or also you can add it as a submodule
```bash
$ git submodule add https://github.com/zapatran/hugo-oblate-theme themes/hugo-oblate-theme
```
For more information, please read Hugo's official [setup guide](//gohugo.io/overview/installing/).
### The config file
Take a look inside the [`exampleSite`](//github.com/zapatran/hugo-oblate-theme/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml).
To use it, copy the [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml) file to the root folder of your Hugo site. Feel free to change the strings as you like to customize your website.
Make sure to update the `themesDir` property in the config file to point to your site's theme folder, otherwise an error will be thrown indicating the themes folder is unable to be found.
## About page
Use the about page to introduce yourself to your visitors. You can customize the content as you like in the [`about.md`](https://github.com/zapatran/hugo-oblate-theme/tree/master/exampleSite/content).
## Pages
You can create others pages using
```bash
$ hugo new --kind page <new-page>.md
```
## Posts
In order to generate new entry
```bash
$ hugo new post/<new-entry>.md
```
## Projects
You can add your own projects creating a file `projects.json` with the following structure:
```json
[
{
"name": "name of your project",
"emoji": "🖍",
"description": "Description of your project",
"project": "https://zapatran.dev",
"source": "https://github.com/zapatran/hugo-oblate-theme"
}
]
```
## Shortcodes
There are threes kind of shortcodes `alerts` y `filename headers` and `mermaid`
### Alerts
types of alerts `alert`, `info`, `note`, `details`, `success` in order to place an alert you need to
```go
{{< blockquote <type> />}}
this is my alert
{{< /blockquote }}
```
example
{{< blockquote alert />}}
remember not no commit node_modules
{{< /blockquote }}
### Filenames headers
Now you can add filename headers in a block code
{{< filename "main.js" />}}
```javascript
console.log('Welcome to the party pal!')
```
### Mermaid
check the [official documentation](https://mermaidjs.github.io)
```go
{{<mermaid>}}
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
{{< /mermaid >}}
```
## Disqus
This theme features a comment system powered by Disqus too. Just add your Disqus-shortname to the [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml) and let readers respond to your blog posts.
## Emojicon
This theme also add support to [emojicon](https://emojicom.io). Just add your key to [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml) and get feedback from your visitors 😃.
## Social link icons
You can add a social link panel in the navbar by adding entries to the `social` block in the [`config.toml`](//github.com/zapatran/hugo-oblate-theme/blob/dev/exampleSite/config.toml). the theme is using the icon fonts [Font awesome](https://fortawesome.github.io/Font-Awesome/)
## Almost done
To see your site in action, run Hugo's built-in local server.
$ hugo server
Now enter [`localhost:1313`](http://localhost:1313) in the address bar of your browser.
## Contributing
Found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://github.com/zapatran/hugo-oblate-theme/issues) to let me know. Or directly make a [pull request](https://github.com/zapatran/hugo-oblate-theme/pulls).
Please create a separate branch for your pull request.
## License
This theme is released under the MIT license. For more information read the [license](https://github.com/zapatran/hugo-oblate-theme/blob/master/LICENSE).
## Acknowledgements
Thanks to
- [Tania Rascia](//github.com/taniarascia) for creating the original theme
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 文档
