Jekyll博客

bubblin-jekyll — Jekyll 博客模板

作者 bookiza

Bubblin Blog 官方使用的 Jekyll 博客主题,基于 Minima 重写,适合在现有站点(如 Rails 应用)旁挂载一个 /blog/ 子路径博客。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

The Bubblin Blog 实际在用的 Jekyll 主题,仓库采用 MIT 许可

02

从 Jekyll 默认主题 Minima 分叉后,改用 Toucaan CSS 基础重写主题布局

03

提供 default、home、page、post 四种布局,以及 header、footer、head 等可复用 include 片段

04

内置 jekyll-seo-tag 插件输出 meta 标签,并预留 Disqus 评论、Google Analytics、Heap Analytics 的接入点

05

支持通过 site.bubblin-jekyll.date_format 自定义日期格式,评论与分析脚本仅在 production 环境生效

模板详细介绍

bubblin-jekyll 是 The Bubblin Blog 正在使用的 Jekyll 主题,仓库由 bookiza 维护,采用 MIT 许可。它最初从 Jekyll 默认主题 Minima 分叉而来,但主题布局已改用 Toucaan CSS 的基础重写。

该主题面向“在已有站点旁边加一个博客”的场景,例如 Rails 应用侧边挂载,或部署在 https://example.com/blog/ 这样的子路径下。README 提供了一篇关于如何配合 Rails 应用搭建 Jekyll 博客的教程链接。

主题提供 default、home、page、post 四个布局,以及 header、footer、head、Disqus 评论、Google Analytics 等 include 片段;样式由 _sass 下的基础、布局和语法高亮三个部分构成,通过 assets/main.scss 编译为主样式表。内置 jekyll-seo-tag 插件用于输出 meta 标签。

可配置项包括日期格式(site.bubblin-jekyll.date_format)、Disqus 评论短名、Google Analytics 与 Heap Analytics 标识;评论与分析脚本仅在 JEKYLL_ENV=production 时出现,单篇文章可通过 Front Matter 中的 comments: false 关闭评论。

限制方面:仓库更新停留在 2019 年,GitHub 星标为 0,README 未说明浏览器兼容范围、构建耗时或生产环境表现;演示图片、字体、图标等第三方素材的许可需单独核对,域名、托管等外部服务也可能另行收费。

Jekyll博客

适合你的项目吗?

适用场景

  • 为已有的 Rails 应用或静态站点添加一个挂在 /blog/ 子路径下的博客
  • 用 Jekyll 搭建以文章列表和文章详情为主的编辑型内容站点
  • 需要在文章下方接入 Disqus 评论、并统计访问来源的个人或团队博客
  • 希望基于 Minima 风格但使用不同 CSS 基础的 Jekyll 主题做二次定制

适合人群

  • 熟悉 Jekyll 目录结构、能通过覆盖 _includes 与 assets/main.scss 做定制的开发者
  • 已有主站、只想在侧边或子路径补充博客模块的项目
  • 接受 MIT 许可条款、并会自行核对第三方素材授权的使用者

上手与定制指南

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

  1. 1

    在 Gemfile 中加入 gem "bubblin-jekyll",并在 _config.yml 中设置 theme: bubblin-jekyll 与 search: true,然后执行 bundle

  2. 2

    覆盖默认样式需在站点根目录创建 assets/main.scss,加入 Front Matter 与 @import "bubblin-jekyll"; 后再写自定义 CSS

  3. 3

    评论需在 _config.yml 配置 disqus.shortname,分析需配置 google_analytics 或 heap_analytics,且仅在 JEKYLL_ENV=production 时输出

  4. 4

    本地开发可运行 script/bootstrap 初始化环境,再用 script/server 或 bundle exec jekyll serve 在 localhost:4000 预览

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 启用文章评论需自行拥有 Disqus 账号并配置 shortname,属于第三方外部服务,可能受其条款与费用约束。
  • 使用 Google Analytics 需自行申请并配置跟踪 ID,属外部服务,可能涉及账号与费用。
  • 使用 Heap Analytics 需自行申请并配置项目 ID,属外部服务,可能涉及账号与费用。
  • 评论默认开启,但仅在 JEKYLL_ENV=production 的生产环境构建时才会输出。
  • Google Analytics 脚本仅在 JEKYLL_ENV=production 的生产环境构建时才会输出。
  • Heap Analytics 脚本仅在 JEKYLL_ENV=production 的生产环境构建时才会输出。
  • 如需在单篇文章关闭评论,须在该文章 Front Matter 中显式设置 comments: false。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.

README 原文

To enable Google Anaytics, add the following lines to your Jekyll site:

README 原文

To enable Heap Anaytics, add the following lines to your Jekyll site:

README 原文

Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`

README 原文

Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`

README 原文

Heap will appear only in production, i.e., with `JEKYLL_ENV=production`

README 原文

If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.

README 原文
https://github.com/bookiza/bubblin-jekyll/blob/master/LICENSE.txthttps://github.com/bookiza/bubblin-jekyll/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2019-10-08
截图检查日期
2026-10-03

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: 9e9f41b92bf7b3dec622a2f0ae0b2ab6a4c15cb2ea25a904c20d454b432b2dbd

2026-10-03T18:01:39.201Z

来源文件 / 仓库
# bubblin-jekyll

The `Bubblin-Jekyll` is the Jekyll theme in use at [The Bubblin Blog](https://bubblin.io/blog/). It is a particularly useful theme for situations where you want to add a blog to your site, say on the side of your rails app (website) or over a url like this:

> https://example.com/blog/


`Bubblin-Jekyll` was originally a fork off of [Minima](https://github.com/jekyll/minima)—the default gem-theme of Jekyll-but it has been rewritten completely using the [Toucaan CSS](https://github.com/marvindanig/toucaan) fundamentals for its themed layout.

A tutorial on how to setup a jekyll blog using the `bubblin-jekyll` theme alongside your rails app is available [here](https://bubblin.io/blog/).

[Theme preview](https://jekyll.github.io/bubblin-jekyll/)

![bubblin-jekyll theme preview](/screenshot.png)

## Installation

Add this line to your Jekyll site's Gemfile:

```ruby
gem "bubblin-jekyll"
```

And add this line to your Jekyll site:

```yaml
theme: bubblin-jekyll

search: true
```

And then execute:

    $ bundle

### Layouts

Refers to files within the `_layouts` directory, that define the markup for your theme.

  - `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
  - `home.html` — The layout for your landing-page / home-page / index-page.
  - `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
  - `post.html` — The layout for your posts.

### Includes

Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.

  - `disqus_comments.html` — Code to markup disqus comment box.
  - `footer.html` — Defines the site's footer section.
  - `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
  - `head.html` &mdash; Code-block that defines the `<head></head>` in *default* layout.
  - `header.html` &mdash; Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
  - `icon-* files` &mdash; Inserts github and twitter ids with respective icons.

### Sass

Refers to `.scss` files within the `_sass` directory that define the theme's styles.

  - `bubblin-jekyll.scss` &mdash; The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
  - `bubblin-jekyll/_base.scss` &mdash; Resets and defines base styles for various HTML elements.
  - `bubblin-jekyll/_layout.scss` &mdash; Defines the visual style for various layouts.
  - `bubblin-jekyll/_syntax-highlighting.scss` &mdash; Defines the styles for syntax-highlighting.

### Assets

Refers to various asset files within the `assets` directory.
Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.

This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.

### Plugins

Bubblin-jekyll comes preinstalled with the [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.

## Usage

### Customization

To override the default structure and style of bubblin-jekyll, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.

The site's default CSS has now moved to a new place within the gem itself, [`assets/main.scss`](assets/main.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
- Create a new instance of `main.scss` at site source.
  - Create a new file `main.scss` at `<your-site>/assets/`
  - Add the frontmatter dashes, and
  - Add `@import "bubblin-jekyll";`, to `<your-site>/assets/main.scss`
  - Add your custom CSS.
- Download the file from this repo
  - Create  a new file `main.scss` at `<your-site>/assets/`
  - Copy the contents at [assets/main.scss](assets/main.scss) onto the `main.scss` you just created, and edit away!
- Copy directly from Bubblin-Jekyll gem
  - Go to your local bubblin-jekyll gem installation directory ( run `bundle show bubblin-jekyll` to get the path to it ).
  - Copy the `assets/` folder from there into the root of `<your-site>`
  - Change whatever values you want, inside `<your-site>/assets/main.scss`

--

### Change default date format

You can change the default date format by specifying `site.bubblin-jekyll.date_format`
in `_config.yml`.

```
# Bubblin-Jekyll date format
# Refer to http://shopify.github.io/liquid/filters/date/ to customize
bubblin-jekyll:
  date_format: "%b %-d, %Y"
```

--

### Enabling comments (via Disqus)

Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.

To enable it, add the following lines to your Jekyll site:

```yaml
  disqus:
    shortname: my_disqus_shortname
```

You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).

Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`

If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.

--

### Enabling Google Analytics

To enable Google Anaytics, add the following lines to your Jekyll site:

```yaml
  google_analytics: UA-NNNNNNNN-N
```

Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`


--

### Enabling Heap Analytics

To enable Heap Anaytics, add the following lines to your Jekyll site:

```yaml
  heap_analytics: NN-NNNNNNNNN
```

Heap will appear only in production, i.e., with `JEKYLL_ENV=production`


## Contributing

Bug reports and pull requests are welcome on GitHub at . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## Development

To set up your environment to develop this theme, run `script/bootstrap`.

To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.

## License

The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
反馈内容错误

看看同类模板

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