Hexo博客

hexo-theme-bp-gallery — Hexo 博客模板

作者 BP-Devteam

基于 Hexo 的博客主题,移植自 StartBootstrap 的 Clean Blog,支持深色模式、Bootstrap 5 与图片画廊。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-01查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

移植自 StartBootstrap 的 Clean Blog,编辑排版风格的博客外观

02

同时提供浅色与深色两套主题配色

03

使用原生 JavaScript,不依赖 jQuery,样式基于 Bootstrap 5

04

支持文章与页面封面图、标签与分类、响应式图片和图片画廊

05

可接入 Google Analytics、页面计数器以及 Disqus 或 Facebook 评论

模板详细介绍

hexo-theme-bp-gallery 是 BP-Devteam 为 Hexo 编写的博客主题,README 说明其实现自 StartBootstrap 的 Clean Blog 模板,因此整体是偏编辑排版风格的博客外观。主题提供浅色与深色两套配色,仓库中给出了 PC 端两种模式的截图。

功能上,主题使用原生 JavaScript(不依赖 jQuery)与 Bootstrap 5,并声明不写自定义 CSS;内置 Bootstrap Icons。内容层面支持文章与页面的封面图、标签与分类、响应式图片以及图片画廊(借助 Lightbox for Bootstrap 5)。此外集成 Google Analytics 统计代码、页面计数器(hexo-pagecounter)以及 Disqus 或 Facebook 评论。

配置集中在主题的 _config.yml:菜单项以“标签: 路径”的形式定义,左上角标题可自定义或留空使用站点标题,首页封面图对所有索引类页面生效,分页 per_page 建议取 4、8、12、16,设为 0 则关闭分页。文章层面通过 front-matter 指定作者、封面图、分享封面图和 comment: false 关闭评论。需要注意,主题不支持传统摘要,索引页的摘要文字需用 subtitle 字段提供。

许可方面,仓库采用 MIT 许可,可免费使用、修改、商用与分发,但需保留版权与许可声明;演示图片、字体、图标等第三方素材的授权需另行核对。

Hexo博客

适合你的项目吗?

适用场景

  • 搭建以文章阅读为主的个人或团队 Hexo 博客
  • 需要深色模式与图片画廊展示的图文博客
  • 希望用 Bootstrap 5 体系快速调整样式的 Hexo 站点

适合人群

  • 使用 Hexo 生成静态博客的开发者
  • 偏好 Clean Blog 这类简洁编辑排版风格的用户
  • 需要标签、分类、封面图与画廊等基础内容能力的博客作者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    将主题克隆到 themes/bp-gallery,并在站点 _config.yml 中把 theme 设为 bp-gallery

  2. 2

    在主题 _config.yml 中配置菜单、左上角标题、首页封面图、分页与评论等选项

  3. 3

    评论的 Disqus 与 Facebook 二选一,同时填写会在一篇文章下出现两组评论

  4. 4

    文章摘要需使用 front-matter 的 subtitle 字段,主题不支持传统摘要

  5. 5

    仓库采用 MIT 许可,使用时需保留版权与许可声明;第三方素材授权需另行核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 评论功能需二选一:若同时填写 Disqus 短名与 Facebook appid,每篇文章会渲染出两组评论区,因此只能启用其中一个。
  • 启用 Google Analytics 需自行提供跟踪 ID,属于依赖外部第三方服务的可选配置。
  • 主题不支持传统摘要,索引页摘要文字必须改用 front-matter 的 subtitle 字段提供。
  • 分页通过 per_page 控制,设为 0 即关闭分页;README 建议取值为 4、8、12、16。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 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 原文

This theme does not support traditional excerpts. To show excerpts on the index page, use `subtitle` in the front-matter

README 原文

## Set per_page to 0 to disable pagination

README 原文
https://github.com/BP-Devteam/hexo-theme-bp-gallery/blob/main/LICENSEhttps://github.com/BP-Devteam/hexo-theme-bp-gallery/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料一般 · 60 / 100
技术栈
Hexo
网站类型
博客
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2024-01-26
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Hexo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 26ce1f0c31ac6a7a3bbb5e1a23d41b83e667dc2b3541fdd744e177e99d3c15d5

2026-10-03T05:16:22.613Z

来源文件 / 仓库
# BP Gallery for Hexo

## Light mode 
![](https://github.com/BP-Devteam/hexo-theme-bp-gallery/blob/main/source/images/pc_light.png?raw=true)

## Dark mode 
![](https://github.com/BP-Devteam/hexo-theme-bp-gallery/blob/main/source/images/pc_dark.png?raw=true)

Hexo implementation of [Clean Blog](http://blackrockdigital.github.io/startbootstrap-clean-blog/index.html)

## Demo 
![Hexo-theme-bp-gallery](https://hexo-theme-bp-gallery.web.app/)

## Features

- Dark Theme
- **vanillaJS** (No Jquery)
- **BootStrap5** (No custom CSS)
- Google Analytics
- Cover image for posts and pages
- Tags and Categories Support
- Responsive Images
- Image Gallery
- [Bootstrap Icons](https://icons.getbootstrap.com/)
- Page Counter

## External libraries used

- [Bootstrap](https://getbootstrap.com/) (included)
- [Lightbox for Bootstrap 5](https://github.com/trvswgnr/bs5-lightbox) (Gallery)
- [Page Counter](https://github.com/BP-Devteam/hexo-pagecounter)

## Installation

```
$ git clone https://github.com/BP-Devteam/hexo-theme-bp-blog themes/bp-gallery
```

Then update your blog's main `_config.yml` to set the theme to `bp-gallery`:

```
# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: bp-gallery
```

## Configuration

### Menu

The menu is configured in the theme's `_config.yml`.

```
# Header
menu:
  Archives: /archives
  Github: https://github.com/BP-Devteam/hexo-theme-bp-gallery
```

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
```


### Recommeded per_page

4,8,12,16

```
# Pagination
## Set per_page to 0 to disable pagination
per_page: 12
```

### 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:
```

### 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/BP-Devteam/hexo-theme-bp-blog
linkedin_url:
mailto:
```

### Author

The post's author is specified in the posts front-matter:

```
author: BP.jason
---
```

### 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.
---

```


## Creator

This theme was created by [BP-Devteam](https://github.com/BP-Devteam)

## License

MIT
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。