Jekyll博客

jekyll-dash — Jekyll 博客模板

作者 bitbrain

jekyll-dash 是一款受 Atom 的 Dash UI 启发的 Jekyll 博客主题,提供明暗两种配色,并支持 RTL、标签、分页、语法高亮、可定制头像框与社交链接。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

采集于 2026-09-30查看来源

值得关注的模板亮点

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

01

提供浅色与深色两套配色,风格参考 Atom 的 Dash UI 主题

02

支持 RTL 排版,可通过配置开启

03

内置标签、分页与代码语法高亮

04

头像框可定制,支持 Gravatar、GitHub 或本地图片

05

页脚可配置多个社交链接,图标与颜色可选

06

以 Ruby Gem 形式发布,便于在 Jekyll 站点中引入

模板详细介绍

jekyll-dash 是一个面向 Jekyll 的博客主题,视觉风格参考 Atom 编辑器上的 Dash UI 主题,同时提供浅色与深色两套外观。主题以 Gem 形式发布,通过 Gemfile 与 _config.yml 中的 theme 字段接入现有 Jekyll 站点。

功能方面,主题包含明暗模式切换、RTL 支持、标签、分页、语法高亮、可定制的头像框以及页脚社交链接。标签需要额外引入 jekyll-tagging 插件,Gravatar 头像需要 liquid-md5 插件,分页依赖 jekyll-paginate 且分页页面必须使用 HTML 文件。

使用限制主要来自托管环境:GitHub Pages 目前只支持 Jekyll 3.9.x,且仅允许有限的插件列表,因此标签等功能在 GitHub Pages 原生构建下不可用,需要借助 GitHub Actions 等外部 CI 单独生成 _site 再发布。主题 1.x 对应 Jekyll 3,2.x 对应 Jekyll 4,两者不可混用。Disqus 评论需要在 _config.yml 中配置正确的 url,并在 Disqus 侧添加受信域名。

Jekyll博客

适合你的项目吗?

适用场景

  • 为个人技术博客搭建带明暗主题的 Jekyll 站点
  • 在需要 RTL 排版的博客中使用该主题
  • 为已有 Jekyll 站点替换外观并保留标签、分页等博客功能
  • 通过 GitHub Actions 构建 _site 并部署到 GitHub Pages 或自托管环境

适合人群

  • 使用 Jekyll 构建静态博客的开发者
  • 希望博客同时具备浅色与深色外观的用户
  • 需要标签、分页与代码高亮的写作型博客
  • 愿意通过外部 CI 构建以使用完整功能的 GitHub Pages 用户

上手与定制指南

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

  1. 1

    在 Gemfile 中添加 jekyll-dash:Jekyll 3 使用 1.x 版本,Jekyll 4 使用 2.x 版本,并在 _config.yml 中设置 theme: jekyll-dash

  2. 2

    分页需配置 jekyll-paginate,且分页入口页面必须为 index.html,Markdown 文件不支持分页

  3. 3

    标签功能需引入 jekyll-tagging 插件;Gravatar 头像需引入 liquid-md5 插件

  4. 4

    GitHub Pages 原生构建仅支持 Jekyll 3.9.x 与有限插件,标签等功能需通过 GitHub Actions 等外部 CI 生成 _site 后发布

  5. 5

    使用自定义域名时,在主分支添加 CNAME 文件,并在 _config.yml 中取消 include: [CNAME] 的注释

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

  • 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
  • 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
  • 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
  • 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • GitHub Pages 原生构建目前仅支持 Jekyll 3.9.x,因此在该环境下需使用主题 1.x 版本,无法使用面向 Jekyll 4 的 2.x 版本。
  • 在 GitHub Pages 原生构建下部分功能(如标签显示)不可用,需改用 GitHub Actions 等外部 CI 生成 _site 后发布才能获得完整功能。
  • 分页功能仅支持 HTML 文件,分页入口页面必须为 index.html,Markdown 文件无法使用分页。
  • 标签功能需额外引入 jekyll-tagging 插件并在 _config.yml 中启用,非主题内置开箱即用。
  • 显示 Gravatar 头像需额外引入 liquid-md5 插件,属于可选外部依赖。
  • 使用 Disqus 评论需在 _config.yml 配置正确的 url,并在 Disqus 侧将域名添加为受信域名,依赖外部服务。
  • 主题版本与 Jekyll 版本强绑定:1.x 仅兼容 Jekyll 3.x,2.x 仅兼容 Jekyll 4.x,不可混用。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

no-charge, royalty-free, irrevocable copyright license

许可证原文

Github pages generation [only supports Jekyll 3.9.x right now]

README 原文

You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags.

README 原文

pagination only works with HTML files! Markdown is not supported there.

README 原文

add the `jekyll/tagging` plugin to your `_config.yml` file to enable tagging

README 原文

if you want to display your gravatar picture, add the `liquid-md5` to your `_config.yml` file

README 原文

Make sure you configure the correct `url` within your `_config.yml`. Also make sure that your domain is trusted by Disqus.

README 原文

Version 1.x is only compatible with Jekyll 3.x while Version 2.x is only compatible with Jekyll 4.x.

README 原文
https://github.com/bitbrain/jekyll-dash/blob/main/LICENSEhttps://github.com/bitbrain/jekyll-dash/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2025-08-07
截图检查日期
2026-10-01

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 8e4d26e2edb3df3b5525d80d1d876bbd9fcaf48486df2928d16aea28966ea37f

2026-10-01T15:16:44.367Z

来源文件 / 仓库
![logo](logo.png)
--

A dark and light theme for Jekyll, inspired by Dash UI for Atom. 🌒☀

![Build Tag](https://github.com/bitbrain/jekyll-dash/actions/workflows/build-tag.yml/badge.svg)
[![license](https://img.shields.io/github/license/bitbrain/jekyll-dash.svg?style=flat-square)](LICENSE.MD)
[![Gem](https://badgen.net/rubygems/v/jekyll-dash)](https://badgen.net/rubygems/v/jekyll-dash "View this project in Rubygems")
[![Downloads](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-dash)](https://rubygems.org/gems/jekyll-dash "Number of Gem downloads")
---
This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](https://atom.io/themes/dash-ui), a dark theme for [Atom](https://atom.io).

[![design](theme.gif)](http://bitbrain.github.io)

## Features

#### :first_quarter_moon: Dark/Light Mode
#### :arrow_left: Right-to-Left (RTL) Support
#### :bookmark: Tags
#### :orange_book: Pagination
#### :computer: Syntax Highlighting
#### :wave: Customisable Avatar Box
#### :two_hearts: Social Links

## Installation

Add this line to your Jekyll site's `Gemfile`:

For **Jekyll 3**:
```ruby
gem 'jekyll-dash', '~> 1'
```

> Keep in mind: Github pages generation [only supports Jekyll 3.9.x right now](https://pages.github.com/versions/).

For **Jekyll 4**:
```ruby
gem 'jekyll-dash', '~> 2'
```

And add this line to your Jekyll site's `_config.yml`:

```yaml
theme: jekyll-dash
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jekyll-dash -v version

## Configuration

Add the following configuration to your site. Customise it to your needs!

```yaml
# required by disqus to display comments
url: https://your-site-url

# jekyll-paginate
paginate: 5
paginate_path: "/blog/page:num/"

# jekyll-tagging (optional)
tag_permalink_style: pretty
tag_page_layout: tag_page
tag_page_dir: tag

# for github pages custom domains:
# include: [CNAME]

dash:
  # the way how dates should be displayed
  date_format: "%b %-d, %Y"

  # (optional) discqus comment configuration
  disqus:
    shortname: <your-disqus-shortname>  

  # the animation speed of the post scroll-in effect
  animation_speed: 50

  # wether to enable Right-to-Left support or not
  rtl: false

  # Replaces the default avatar provider (gravatar)
  #avatar_source: github
  #github_username: bitbrain
  #avatar_source: local
  #avatar_path: /assets/avatar.png

  # generate social links in footer
  # supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
  social_links:
    - url: https://twitter.com/bitbrain_
      icon: twitter-square
      color: cyan
    - url: https://bitbrain.itch.io
      icon: itch-io
      color: red
    - url: https://github.com/bitbrain
      icon: github-square
      color: purple
  
  # wether the author box should be displayed or not
  show_author: true
```
## Using this theme directly on Github Pages

Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://pages.github.com/versions/). You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags. In order to use this theme to a full extend, you have to generate the `_site` [separately via Github Actions](https://jekyllrb.com/docs/continuous-integration/github-actions/).

* `<username>.github.io` - contains main source branch and orphan gh-pages branch ([see example](https://github.com/bitbrain/bitbrain.github.io))

I have created [a guide on how to set this up here](https://bitbra.in/2021/10/03/host-your-own-blog-for-free-with-custom-domain.html).

You are not required to do this, but keep in mind that some functionality might not be available when using the Jekyll generator on Github directly!

If you are using a custom domain add in your main branch a file named CNAME with your domain there and uncomment this line in your config file:
```
include: [CNAME]
```
For more information about how to configure your CNAME file, read the [official documentation](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site).

## Additional Features

**Tagging** add the `jekyll/tagging` plugin to your `_config.yml` file to enable tagging. Do not forget to also add the following to your `Gemfile`:
```Gemfile
gem "jekyll-tagging"
```
**Gravatar** if you want to display your gravatar picture, add the `liquid-md5` to your `_config.yml` file. Do not forget to also add the following to your `Gemfile`:
```Gemfile
gem "liquid-md5"
```
## FAQ

> I have configured posts but no posts are showing?

**Solution:** You most probably forgot to configure [jekyll-paginate](https://jekyllrb.com/docs/pagination/) in your _config.yml! Make sure you have the correct configuration as described above!

> I have added the correct configuration for `jekyll-paginate` but it is now complaining about a missing `index.html` file. What do I do?

**Solution** pagination only works with HTML files! Markdown is not supported there. Simply rename your `index.md` into `index.html` - that should do the trick!

> I have configured Disqus via _config.yml but Disqus fails to load on the page? 

**Solution:** Make sure you configure the correct `url` within your `_config.yml`. Also make sure that your domain is trusted by Disqus. This can be configured within Disqus by adding a trusted domain.

> I am using this theme but I don't see any tags?

**Solution**: as described above you have to add the tagging plugin. Additionally, tags do not work natively by Github Pages. [You have to build your site on an external CI](https://bitbra.in/2021/10/03/host-your-own-blog-for-free-with-custom-domain.html) and push the `_site` artifacts to a hosting repository.

> I am getting an error that Bundler could not find compatible versions for gem

**Solution**

Make sure you are using a version of this theme that is compatible with Jekyll. Version 1.x is only compatible with Jekyll 3.x while Version 2.x is only compatible with Jekyll 4.x.

> I am getting an error 'cannot load such file --webrick' when trying to run `bundle exec jekyll serve`

**Solution**

As [explained here](https://github.com/jekyll/jekyll/issues/8523#issuecomment-751409319) this seems to be a bug with some recent Jekyll 4 version. To solve this simply run:
```bash
bundle add webrick
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/bitbrain/jekyll-dash. 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 `bundle install`.

Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-dash.gemspec` accordingly.

> If you want to learn how Jekyll Dash gets deployed via Github Actions, feel free [to read this article](https://bitbra.in/2021/10/05/workflow-of-releasing-gem-based-jekyll-theme.html) written by me.

## License

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

看看同类模板

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