基于 Hexo 的博客主题,移植自 Blackrock Digital 的 Clean Blog 静态模板
hexo-theme-clean-blog — Hexo 博客模板
作者 klugjo
hexo-theme-clean-blog 是 klugjo 将 Blackrock Digital 的 Clean Blog 静态模板移植到 Hexo 的博客主题,采用 MIT 许可,提供封面图、标签与分类、评论、分享和代码高亮等配置项。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持 Disqus 与 Facebook 评论,可在主题配置中选择其中一种
支持文章与页面封面图、分享封面图,以及首页封面图配置
内置标签页与分类页的创建方式,通过页面 type 设为 tags 或 categories 启用
集成 Google Analytics、Addthis 分享与社交账号链接配置
使用 Bootstrap、FeatherLight.js 与 jQuery,提供图片画廊与代码语法高亮
模板详细介绍
这是一个面向 Hexo 的博客主题,仓库描述为 Clean Blog 的 Hexo 实现,原版页面来自 Blackrock Digital 的 startbootstrap-clean-blog。主题的菜单、首页封面、默认文章标题、评论服务、统计与分享 ID、社交链接等都在主题的 _config.yml 中配置;文章的作者、封面图、分享封面、副标题等通过 front-matter 设置。仓库 README 给出了安装方式:将主题克隆到 themes/clean-blog,再把博客主配置中的 theme 改为 clean-blog。
功能方面,README 列出 Disqus 与 Facebook 评论、Google Analytics、Addthis、文章与页面封面图、标签与分类支持、响应式图片、图片画廊和代码语法高亮;外部依赖包括 Bootstrap、FeatherLight.js 与 jQuery。README 同时说明该主题不支持传统摘要,首页摘要需要在 front-matter 中使用 subtitle 字段;评论可在文章 front-matter 中用 comment: false 关闭。
许可方面,仓库包含 MIT 许可文件,允许免费使用、修改、商用和分发该版本代码,分发时需保留版权声明与许可声明;演示图片、字体、图标等第三方素材需按各自许可核对。仓库最近更新时间为 2021 年,README 未声明生产就绪程度或性能指标。
适合你的项目吗?
适用场景
- 用 Hexo 搭建以文章列表和归档为主的个人博客
- 需要为文章和页面配置封面图、标签与分类的博客站点
- 希望通过 Disqus 或 Facebook 提供文章评论的 Hexo 站点
- 需要图片画廊与代码语法高亮的写作型博客
- 在页脚展示 Twitter、Facebook、GitHub、LinkedIn 等社交链接的博客
适合人群
- 使用 Hexo 并希望快速套用 Clean Blog 视觉风格的博客作者
- 接受通过主题 _config.yml 与文章 front-matter 进行配置的用户
- 需要 MIT 许可、可自行修改和分发主题代码的开发者
- 以图文文章为主、需要封面图与画廊展示的博客
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
将仓库克隆到 Hexo 站点的 themes/clean-blog 目录,并在博客主 _config.yml 中把 theme 设为 clean-blog
- 2
菜单、首页封面、默认文章标题、评论、Google Analytics、Addthis 与社交链接在主题的 _config.yml 中配置
- 3
文章作者、封面图、分享封面与首页摘要使用的 subtitle 需在文章 front-matter 中设置
- 4
标签页与分类页需先用 hexo new page 创建页面,并在 front-matter 中把 type 设为 tags 或 categories,再添加到菜单
- 5
Disqus 与 Facebook 评论只需选择一种配置,避免同一文章出现两组评论
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 评论功能需选择 Disqus 或 Facebook 其中一种配置;若同时填写两者,每篇文章会出现两组评论,因此只能二选一。
- 使用 Google Analytics 统计需自行提供 Tracking ID,属于依赖外部第三方服务的可选配置。
- 使用 Addthis 分享功能需自行提供 Addthis ID,依赖外部第三方服务。
- 该主题不支持传统摘要功能,首页摘要只能在文章 front-matter 中使用 subtitle 字段替代实现。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
If you specify both a `disqus_shortname` and a `facebook.appid` there will be 2 sets of comment per post. So choose one.
README 原文
The Google Analytics Tracking ID is configured in the theme's `_config.yml`.
README 原文
The Addthis ID is configured in the theme's `_config.yml`.
README 原文
https://github.com/klugjo/hexo-theme-clean-blog/blob/master/LICENSEhttps://github.com/klugjo/hexo-theme-clean-blog/blob/master/README.mdThis theme does not support traditional excerpts. To show excerpts on the index page, use `subtitle` in the front-matter:
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 81 / 100
- 技术栈
- Hexo · HTML
- 网站类型
- 博客 · 工具站
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2021-02-08
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hexo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 7c72b9cccc8da33d24ca843b5046ce21a2248e12f6f38a9ad5f0123110309a38
2026-10-01T03:18:20.864Z
来源文件 / 仓库# Clean Blog Hexo

Hexo implementation of [Clean Blog](http://blackrockdigital.github.io/startbootstrap-clean-blog/index.html)
Clean blog is a full featured, responsive Hexo theme. [Demo here](http://www.codeblocq.com/assets/projects/hexo-theme-clean-blog/).
## Features
- Disqus and Facebook comments
- Google Analytics
- Addthis
- Cover image for posts and pages
- Tags and Categories Support
- Responsive Images
- Image Gallery
- Code syntax highlighting
## External libraries used
- [Bootstrap](http://getbootstrap.com/css/)
- [FeatherLight.js](http://noelboss.github.io/featherlight/) (Gallery)
- [jQuery](https://jquery.com/)
## Installation
```
$ git clone https://github.com/klugjo/hexo-theme-clean-blog.git themes/clean-blog
```
Then update your blog's main `_config.yml` to set the theme to `clean-blog`:
```
# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: clean-blog
```
## Configuration
### Menu
The menu is configured in the theme's `_config.yml`.
```
# Header
menu:
Home: /
Archives: /archives
Github:
url: https://github.com/klugjo/hexo-theme-clean-blog
icon: github
```
The object key is the label and the value is the path, or you can use a icon (font awesome) like menu item.
### Top Left Label
The top left label is configured in the theme's `_config.yml`. When clicked it will lead to the Home Page.
```
# Title on top left of menu. Leave empty to use main blog title
menu_title: Configurable Title
```
### Home Page cover image
The Home Page cover is configured in the theme's `_config.yml`. It will be the same for all index type pages.
```
# URL of the Home page image
index_cover: /img/home-bg.jpg
```
### Default post title
The default post title (used when no title is specified) is configured in the theme's `_config.yml`.
```
# Default post title
default_post_title: Untitled
```
### Comments
The comments provider is specified in the theme's `_config.yml`. If you specify both a `disqus_shortname` and a `facebook.appid` there will be 2 sets of comment per post. So choose one.
```
# Comments. Choose one by filling up the information
comments:
# Disqus comments
disqus_shortname: klugjotest
# Facebook comments
facebook:
appid: 123456789012345
comment_count: 5
comment_colorscheme: light
```
You can too hide the comment in the posts front-matter:
```
comment: false
---
```
### Google Analytics
The Google Analytics Tracking ID is configured in the theme's `_config.yml`.
```
# Google Analytics Tracking ID
google_analytics:
```
### Addthis
The Addthis ID is configured in the theme's `_config.yml`.
```
# Addthis ID
addthis:
```
### Social Account
Setup the links to your social pages in the theme's `_config.yml`. Links are in the footer.
```
# Social Accounts
twitter_url:
facebook_url:
github_url: https://github.com/klugjo/hexo-theme-clean-blog
linkedin_url:
mailto:
```
### Author
The post's author is specified in the posts front-matter:
```
author: Klug Jo
---
```
### Post's Cover Image
By default, posts will use the home page cover image. You can specify a custom cover in the front-matter:
```
title: Excerpts
date: 2013-12-25 00:23:23
tags: ["Excertps"]
cover: /assets/contact-bg.jpg
---
```
### Post's Share Cover Image
You can specify a custom cover to share yours posts in social medias:
```
share_cover: /assets/contact-bg.jpg
---
```
### Post's Excerpt
This theme does not support traditional excerpts. To show excerpts on the index page, use `subtitle` in the front-matter:
```
title: Excerpts
date: 2013-12-25 00:23:23
tags: ["Excertps"]
subtitle: Standard Excerpts are not supported in Clean Blog but you can use subtitles in the front matter to display text in the index.
---
```
## Tags page.
> Follow these steps to add a `tags` page that contains all the tags in your site.
- Create a page named `tags`
```
$ hexo new page "tags"
```
- Edit the newly created page and set page type to `tags` in the front matter.
```
title: All tags
type: "tags"
```
- Add `tags` to the menu in the theme `_config.yml`:
```
# Header
menu:
Home: /
Archives: /archives
Tags: /tags
```
## Categories page.
> Follow these steps to add a `categories` page that contains all the categories in your site.
- Create a page named `categories`
```
$ hexo new page "categories"
```
- Edit the newly created page and set page type to `categories` in the front matter.
```
title: All categories
type: "categories"
```
- Add `Categories` to the menu in the theme `_config.yml`:
```
# Header
menu:
Home: /
Archives: /archives
Categories: /categories
```
## Creator
This theme was created by [Blackrock Digital](https://github.com/BlackrockDigital) and adapted for Hexo by [Jonathan Klughertz](http://www.codeblocq.com/).
## License
MIT
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hexo-theme-matery
A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。
Hexo · 博客

hexo-theme-cactus
:cactus: A responsive, clean and simple theme for Hexo.
Hexo · 博客

hexo-theme-volantis
A Wonderful Theme for Hexo.
Hexo · 博客

hexo-theme-aurora
Hexo Theme Aurora 是一款以极光色彩和渐变 UI 为核心的 Hexo 博客主题,整体走未来感路线。 它的首页采用杂志式网格布局,文章列表与精选区域层次分明,视觉上更接近个人媒体站点而非传统博客。
Hexo · 博客

hexo-theme-Claudia
Claudia 是一款为 Hexo 设计的博客主题,主打简洁外观与易配置。 它支持自动跟随设备深色模式,并在 README 中宣称拥有 90+ 的 Lighthouse 评分,适合追求轻量与性能的博客作者。
Hexo · 博客

hexo-theme-A4
A hexo theme that looks like an A4 paper.(一个类A4纸张质感的hexo博客主题。 )
Hexo · 博客
