文章点赞功能,由 Kudos(Cloudflare Workers + D1 服务)提供,点赞数与页面关联,更换域名不会重置计数
hugo-bearneo — Hugo 博客模板
作者 rokcso
hugo-bearneo 是一个基于 Hugo Bear Blog 扩展的 Hugo 博客主题,在保留极简风格的同时增加了文章点赞、搜索、目录、图片缩放、Mermaid 图表等实用功能。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
文章列表页搜索框,输入标题关键词即可筛选文章
文章列表页支持按年份分组展示
文章页目录、图片缩放、Mermaid 图表(按页面开启)等阅读增强功能
外链可配置在新标签页打开,并自动添加 rel="noopener noreferrer"
原生支持 Follow 的 RSS Tag 认领方式,可配置 followFeedId 与 followUserId
模板详细介绍
hugo-bearneo 是从 Hugo Bear Blog 移植而来的 Hugo 博客主题,而 Hugo Bear Blog 又源自 ʕ•ᴥ•ʔ Bear Blog。作者在保持 Bear Blog 原有理念的基础上,选择做一个更易扩展、功能更丰富的版本,同时确保可以回退到与 Hugo Bear Blog 甚至 Bear Blog 本身一致的配置。
主题在基础版本之上增加了文章点赞、文章搜索、按年份分组的文章列表页、目录、图片缩放、Mermaid 图表、外链处理以及 Follow App Claim 支持。其中点赞功能由 Kudos(Cloudflare Workers + D1 服务)提供,需要先部署 Kudos 并配置其 URL;Mermaid 图表需要在页面 front matter 中显式开启,JavaScript 仅在启用的页面加载。
主题要求 Hugo v0.110.0 或更高版本,通过 git clone 到 themes 目录并在 hugo.toml 中设置 theme 即可使用。各项扩展功能默认关闭,需要在 hugo.toml 的 params 中逐项开启。README 中也列出了若干待优化项,例如添加 canonical 元数据以改善 SEO、支持 RSS、丰富 Footer 内容等。
适合你的项目吗?
适用场景
- 使用 Hugo 搭建个人博客,希望保留 Bear Blog 极简风格但需要更多扩展功能
- 需要在文章中加入点赞互动、站内搜索或按年份归档文章列表
- 希望在文章中按需渲染 Mermaid 图表并支持图片点击放大
- 希望通过 Follow 的 RSS Tag 方式认领博客以获得读者打赏
适合人群
- 熟悉 Hugo 基本配置、能自行编辑 hugo.toml 的博客作者
- 偏好极简阅读体验、同时需要点赞与搜索等附加功能的个人站点
- 愿意部署 Kudos(Cloudflare Workers + D1)以启用文章点赞的用户
- 需要按年份归档文章列表或为文章添加目录的博客
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Hugo v0.110.0 或更高版本
- 2
在 Hugo 站点根目录执行 git clone https://github.com/rokcso/hugo-bearneo.git themes/hugo-bearneo,并在 hugo.toml 中设置 theme = "hugo-bearneo"
- 3
点赞功能需先部署 Kudos(Cloudflare Workers + D1),再在 hugo.toml 的 params 中设置 upvote = true 和 upvoteURL
- 4
搜索、按年份分组、目录、图片缩放、外链新标签页等分别通过 params 下的 postSearch、groupByYear、toc、imageZoom、externalLinksNewTab 开启
- 5
Mermaid 图表需在页面 front matter 中设置 mermaid: true,再使用 mermaid 代码块
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 文章点赞功能依赖第三方 Kudos 服务(Cloudflare Workers + D1),需自行部署并配置 upvoteURL 后才能使用;不部署则无法启用点赞。
- Follow App Claim 功能依赖第三方平台 Follow(follow.is),需在该平台认领博客并配置 followFeedId、followUserId 才能使用。
- 使用该主题要求 Hugo v0.110.0 或更高版本,低于此版本无法正常运行。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This theme provides Bear Blog-style upvotes, powered by [Kudos](https://github.com/puinoib/kudos), a Cloudflare Workers + D1 service. Deploy Kudos first, then configure its URL as the Upvote endpoint.
README 原文
[Follow](https://follow.is/) is an RSS subscription tool. As a blog creator, claiming your blog on Follow allows you to receive $POWER tips from blog readers through Follow.
README 原文
https://github.com/rokcso/hugo-bearneo/blob/main/LICENSEhttps://github.com/rokcso/hugo-bearneo/blob/main/README.mdThis theme requires Hugo v0.110.0 or later.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 87 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-06
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 22493fb660c70eb30cce1206ae5ab50bc4d88e6a3fbab44eedf3b6a53941eec7
2026-10-02T10:13:39.898Z
来源文件 / 仓库# Hugo ✨ Bear Neo
> Free, no-nonsense, super-fast blogging.
[English](./README.md) | [简体中文](./docs/README_zh.md)
🧸 A [Hugo](https://gohugo.io/) theme based on [Bear Blog](https://bearblog.dev).
Transplanted from [Hugo Bear Blog][hugo-bearblog], because the original author chose to maintain consistency with the root original [Bear Blog](https://bearblog.dev), so I chose to create a more extensible and feature-rich [Hugo Bear Blog][hugo-bearblog].
**Guidelines**
1. Continue to uphold the philosophy of [Bear Blog](https://bearblog.dev)
2. Ensure the ability to revert to configurations identical to [Hugo Bear Blog][hugo-bearblog] or even to [Bear Blog](https://bearblog.dev) itself
**TOC**
- [✨ Features](#-features)
- [🐻 Demo](#-demo)
- [🚀 Quick start](#-quick-start)
- [📑 User Manual](#-user-manual)
- [Upvote posts](#upvote-posts)
- [Search post](#search-post)
- [Post list page grouped by year](#post-list-page-grouped-by-year)
- [Table of contents](#table-of-contents)
- [Image zoom](#image-zoom)
- [Mermaid diagrams](#mermaid-diagrams)
- [External links](#external-links)
- [Follow App Claim](#follow-app-claim)
- [🎁 Acknowledgments](#-acknowledgments)
- [©️ License](#️-license)
## ✨ Features
Based on [Hugo Bear Blog][hugo-bearblog], the following features have been added:
- [x] Upvote posts (Highlight feature 👍, inspired by Bear Blog and powered by Kudos)
- [x] Search post
- [x] Post list page grouped by year
- [x] Table of contents
- [x] Image zoom
- [x] Mermaid diagrams
- [x] External link handling
- [x] Follow App Claim
There are still some optimization items:
- Add canonical metadata, better SEO
- Support RSS
- More abundant Footer content
- ...
## 🐻 Demo
For a current & working demo of this theme, please check out [https://rokcso.com/][rokcso-blog] 🎯.
## 🚀 Quick start
This theme requires Hugo v0.110.0 or later. From the root of your Hugo site, clone the theme into the `themes` directory:
```bash
git clone https://github.com/rokcso/hugo-bearneo.git themes/hugo-bearneo
```
Add the theme name to your site's `hugo.toml`:
```toml
theme = "hugo-bearneo"
```
Start the local server:
```bash
hugo server
```
See the options below to enable features such as post search, table of contents, image zoom, and upvotes.
## 📑 User Manual
### Upvote posts
This theme provides Bear Blog-style upvotes, powered by [Kudos](https://github.com/puinoib/kudos), a Cloudflare Workers + D1 service. Deploy Kudos first, then configure its URL as the Upvote endpoint.
Kudos associates each upvote count with its page, so changing the site's domain does not reset an article's upvote count.
Then add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params]
upvote = true
upvoteURL = "https://kudos.example.com"
```
`upvoteURL` may include or omit a trailing `/`.
### Search post
Display a search box on the post list page and enter post title keywords to search for specific posts.
Add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params]
postSearch = true
```
### Post list page grouped by year
Add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params]
groupByYear = true
```
### Table of contents
Add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params]
toc = true
```
### Image zoom
Add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params]
imageZoom = true
```
### Mermaid diagrams
Set `mermaid: true` in a page's front matter, then use a Mermaid fenced code block in its Markdown content. Mermaid JavaScript loads only on pages that opt in.
````markdown
---
mermaid: true
---
```mermaid
flowchart LR
Reader --> Article
Article --> Kudos
```
````
### External links
Set this option to open external HTTP(S) links in a new tab. Internal links continue to open in the current tab. External links receive `rel="noopener noreferrer"` in either mode.
```toml
[params]
externalLinksNewTab = true
```
### Follow App Claim
[Follow](https://follow.is/) is an RSS subscription tool. As a blog creator, claiming your blog on Follow allows you to receive $POWER tips from blog readers through Follow. I once wrote an [article](https://rokcso.com/p/follow-claim-feed-en/) explaining how to claim your blog on Follow.
The hugo-bearneo natively supports the "Scheme III: RSS Tag" mentioned in my article. You only need to add the following configuration to the Hugo blog configuration file `hugo.toml`:
```toml
[params.RSS]
followFeedId = "00000000000000000"
followUserId = "00000000000000000"
```
Note: Please remember to replace the Follow id in the configuration with your own!
## 🎁 Acknowledgments
A special thank you goes out to [Herman](https://herman.bearblog.dev), for creating the original [ʕ•ᴥ•ʔ Bear Blog](https://bearblog.dev/).
Another special thanks to janraasch, without his [hugo-bearblog][hugo-bearblog], there would not be [hugo-bearneo][hugo-bearneo].
## ©️ License
[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Rokcso][rokcso-blog]
[hugo-bearblog]: https://github.com/janraasch/hugo-bearblog
[hugo-bearneo]: https://github.com/rokcso/hugo-bearneo
[rokcso-blog]: https://rokcso.com/
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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