Jekyll博客

snippet-book — Jekyll 博客模板

作者 jitinnair1

snippet-book 是一个基于 jekyll-theme-console 的 Jekyll 博客主题,采用终端风格布局与 Catppuccin 配色,支持浅色与深色模式并默认跟随用户系统偏好。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

基于 jekyll-theme-console 的终端风格 Jekyll 博客主题

02

内置 Catppuccin 的 Latte、Frappé、Macchiato、Mocha 四套配色

03

浅色与深色模式可分别指定配色,并默认跟随访问者系统偏好

04

支持 title、lang、robots 等额外 front matter 变量

05

样式变量与配色文件分层组织,便于按主题名替换颜色

06

以 MIT 许可开源,可修改并用于商业用途

模板详细介绍

snippet-book 是一个 Jekyll 博客主题,在 jekyll-theme-console 的基础上做了定制:使用 Catppuccin 的 Latte、Frappé、Macchiato、Mocha 四套配色作为浅色与深色模式的默认方案,并默认采用访问者系统偏好的浅色或深色样式。

主题通过 _config.yaml 中的 style_light 与 style_dark 指定浅色、深色模式各自使用的配色,可选值为 latte、frappe、macchiato、mocha。除 Jekyll 默认的 front matter 变量外,主题还支持 title(页面标题)、lang(语言,默认 en)和 robots(控制 robots meta 标签,例如给标签页设置 NOINDEX)。

定制方式为 fork 仓库后修改 _layouts 下的 HTML 文件,以及 assets/_sass 下的样式文件:通用样式变量位于 _sass/base.scss 顶部,Catppuccin 颜色定义在 assets/_sass/colours/_<主题名>.scss,主题级颜色映射在 _sass/theme/_theme-<主题名>.scss。本地开发使用 bundle install 安装依赖,再以 bundle exec jekyll serve 启动服务并在 http://localhost:4000 预览。

该主题以 MIT 许可发布,可免费使用、修改、商用和分发,分发时需保留版权与许可声明;仓库中的演示图片、字体、图标等第三方素材需单独核对许可。

Jekyll博客

适合你的项目吗?

适用场景

  • 搭建个人技术博客或笔记站点
  • 需要浅色/深色自动切换的静态博客
  • 希望使用 Catppuccin 配色体系的站点
  • 以 Jekyll 为基础、需要自行修改布局与样式的项目

适合人群

  • 熟悉 Jekyll 与 Liquid 模板的开发者
  • 愿意 fork 仓库并直接改 HTML/Sass 的使用者
  • 偏好终端风格界面与 Catppuccin 配色的博主
  • 需要 MIT 许可、可自由修改代码的静态站点项目

上手与定制指南

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

  1. 1

    运行 bundle install 安装依赖,再执行 bundle exec jekyll serve,在 http://localhost:4000 预览

  2. 2

    在 _config.yaml 中通过 style_light 与 style_dark 指定浅色、深色模式使用的配色,可选 latte、frappe、macchiato、mocha

  3. 3

    修改 _layouts 下的文件调整 HTML,修改 assets/_sass 下的文件调整样式

  4. 4

    通用样式变量在 _sass/base.scss 顶部;Catppuccin 颜色在 assets/_sass/colours/_<主题名>.scss,主题颜色映射在 _sass/theme/_theme-<主题名>.scss

  5. 5

    分发代码时保留原作者版权声明与完整 MIT 许可声明;演示图片、字体、图标等第三方素材需单独核对许可

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 3b4fa165ab743eb4954a02237b7dd574247c025fd00e33a499c703fbaef1cc0a

2026-10-02T11:00:31.353Z

来源文件 / 仓库
# snippet-book

<p align="center">
<img src="https://snippets.jitin.xyz/assets/img/demo/composite.png" alt="Composite example of the Catppuccin theme for snippet-book"/>
</p>

`snippet-book` is a Jekyll blog theme based on [jekyll-theme-console](https://github.com/b2a3e8/jekyll-theme-console) with a few changes:

- Catpucchin theme defaults for light and dark mode
- User's preferred style (light/dark) is used by default

## Previews

<details>
<summary>🌻 Latte</summary>
<img src="https://snippets.jitin.xyz/assets/img/demo/latte.png" alt="Preview of Latte theme"/>
</details>
<details>
<summary>🪴 Frappé</summary>
<img src="https://snippets.jitin.xyz/assets/img/demo/frappe.png?raw=true" alt="Preview of Frappé theme"/>
</details>
<details>
<summary>🌺 Macchiato</summary>
<img src="https://snippets.jitin.xyz/assets/img/demo/macchiato.png?raw=true" alt="Preview of Macchiato theme"/>
</details>
<details>
<summary>🌿 Mocha</summary>
<img src="https://snippets.jitin.xyz/assets/img/demo/mocha.png?raw=true" alt="Preview of Mocha theme"/>
</details>


## Usage

### _config.yaml

In addition to jekyll's default configuration options, you can provide:
- `style_light` and `style_dark` to specify which predefined style (colors) should be used for light and dar modes

```yaml
style_light: "latte" # available options: latte, frappe, macchiato, mocha
style_dark: "macchiato" # available options: latte, frappe, macchiato, mocha
```

### front matter variables

Besides the predefined [front matter](https://jekyllrb.com/docs/front-matter/) variables from jekyll this theme also supports following variables:

- `title` to set a title for the page
- `lang` to specify the language, defaults to 'en'
- `robots` to control the robot meta tag ([details](http://longqian.me/2017/02/12/jekyll-robots-configuration/)) - this may be useful for example to set `NOINDEX` to tag pages

## Customization

If you want to customize this theme, follow this steps:
1. Fork this repository (you can use the fork as your own theme or directly as your website)
2. Create or modify files in `_layouts` directory for html-based changes
3. Create or modify files in `_sass` under `assets` for css-based changes
   - You can change things which are used in light and dark theme (like font-size) in `_sass/base.scss`. You'll find style variables at the top.
   - Catppuccin colours are under `assets/_sass/colours/_<name-of-theme>.scss`. These varaibles are then used to specify theme-specific colours in `_sass/theme/_theme-<name-of-theme>.scss`. 


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

## License

The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

PS: If you liked the theme, do star :star: it! Thanks!

### Also, check out:

- [autoCV](https://github.com/jitinnair1/autocv) - a LaTeX template that builds and deploys the CV using GitHub Actions, so you will always have a ready link for your latest CV
- [gradfolio](https://github.com/jitinnair1/gradfolio) - a minimal, quick-setup template for a personal website/portfolio
- [Tail](https://github.com/jitinnair1/tail) - a minimal, quick-setup template for a blog
反馈内容错误

看看同类模板

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