通过 jekyll-paginate 提供分页
jekyll-theme-fermi — Jekyll 博客模板
作者 v4vong
Fermi 是一个面向博客的 Jekyll 主题,提供分页、归档页、明暗模式以及 MathJax、Disqus、Google Analytics 4 等可选集成。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
提供 archive 布局,可按年份、分类或标签归档文章
使用 prefers-color-scheme 实现明暗模式,归档页用纯 Liquid 实现
可选集成 MathJax、Disqus 与 Google Analytics 4
导航与社交链接通过 _data 下的 YAML 文件配置,社交图标使用 Font Awesome
可通过 _includes/custom-head.html 向 head 追加内容,复制 _variables.scss 调整颜色与字体
模板详细介绍
Fermi 是一个面向博客的 Jekyll 主题,仓库描述为“简单务实”。它通过 gem 方式安装:在站点的 Gemfile 中加入 `gem "jekyll-theme-fermi"`,并在 `_config.yml` 中设置 `theme: jekyll-theme-fermi`,然后执行 `bundle`;也可以直接 `gem install jekyll-theme-fermi`。作者建议参考演示站点的 `_config.yml` 修改若干属性后即可使用。
主题的功能集中在博客常见需求上:使用 `jekyll-paginate` 实现分页;提供 `archive` 布局,可按年份、分类或标签生成归档页;通过 `prefers-color-scheme` 支持明暗模式;归档页用纯 Liquid 实现。可选集成包括 MathJax(默认关闭,需在页面设置 `math: true`)、Disqus(在 `_config.yml` 填写 shortname)、Google Analytics 4(填写 Measurement ID)。此外还引入 Normalize 做 CSS 重置,并使用 Font Awesome 渲染图标。
配置方式以数据文件为主:导航在 `_data/navigation.yml` 中填写标题与 URL;社交链接在 `_data/social.yml` 中填写标题、URL 和 Font Awesome 图标类名。页面语言可通过页面的 `lang` 属性指定,未设置时回退到 `site.lang`,再回退到默认值 `en`。若要在 `<head>` 中添加内容,只需创建 `_includes/custom-head.html`,无需覆盖整个 `head.html`。样式定制可复制 `_sass/fermi/_variables.scss` 并修改变量值。
需要注意的限制:MathJax 默认关闭;分类与标签归档链接需要在 `_config.yml` 中配置 `categories_path` 与 `tags_path` 才会生效;主题仅打包 `_layouts`、`_includes`、`_sass` 和 `assets` 中受 Git 跟踪的文件,若要加入自定义目录需修改 gemspec 中的正则。仓库采用 MIT 许可,但演示图片、字体、图标等第三方素材需按各自许可核对。
适合你的项目吗?
适用场景
- 搭建以文章列表和归档为主的个人博客
- 需要按年份、分类或标签整理历史文章
- 希望在文章页按需开启数学公式渲染
- 需要接入 Disqus 评论或 Google Analytics 4 统计
适合人群
- 使用 Jekyll 构建静态博客的开发者
- 偏好通过 YAML 数据文件而非大量模板改动来配置站点的用户
- 需要明暗模式与归档页的博客作者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在 Gemfile 中加入 gem "jekyll-theme-fermi",并在 _config.yml 中设置 theme: jekyll-theme-fermi,然后执行 bundle
- 2
可参考演示站点的 _config.yml 修改属性后使用
- 3
导航与社交链接分别在 _data/navigation.yml 和 _data/social.yml 中配置
- 4
MathJax 默认关闭,需在页面设置 math: true;Disqus 与 Google Analytics 4 需在 _config.yml 填写对应标识
- 5
分类与标签归档链接需在 _config.yml 中配置 categories_path 与 tags_path
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- MathJax 默认关闭,仅在页面设置 math: true 时才启用数学公式渲染。
- 使用 Disqus 评论需自行注册 Disqus 账号并提供 shortname,属于第三方外部服务。
- 启用 Google Analytics 4 需自行提供 Measurement ID,属于第三方外部服务。
- 分类与标签归档链接需在 _config.yml 中配置 categories_path 与 tags_path 才会生效。
- 主题仅打包 _layouts、_includes、_sass 和 assets 中受 Git 跟踪的文件,添加自定义目录需修改 gemspec 正则。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
The MathJax is disabled by default. You need to set `math: true` on the page where you want to enable the MathJax.
README 原文
To enable [Disqus](https://disqus.com/), just set the [Disqus shortname](https://help.disqus.com/en/articles/1717111-what-s-a-shortname) in the `_config.yml`
README 原文
To enable it, just set the Measurement ID in the `_config.yml`
README 原文
you need to configure the paths to the category and tag archive pages in the `_config.yml` file
README 原文
https://github.com/v4vong/jekyll-theme-fermi/blob/main/LICENSE.txthttps://github.com/v4vong/jekyll-theme-fermi/blob/main/README.mdonly the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Jekyll
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-02-02
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Jekyll。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: c56c240add74ec9ebad6da9da29751a0db122795de6548082f252b1adaf8fde7
2026-10-02T17:41:11.193Z
来源文件 / 仓库# Fermi <!-- omit in toc -->
A simple and pragmatic Jekyll theme for blog.

## Highlight Features <!-- omit in toc -->
- Support the CSS resets [Normalize](https://github.com/necolas/normalize.css)
- Support [Font Awesome](https://fontawesome.com/)
- Support [MathJax](https://www.mathjax.org/)
- Support [Disqus](https://disqus.com/)
- Support [Google Analytics 4](https://analytics.google.com/analytics/web/)
- Support the pagination, via [`jekyll-paginate`](https://github.com/jekyll/jekyll-paginate)
- Light and dark mode, via [`prefers-color-scheme`](https://web.dev/prefers-color-scheme/)
- Archive pages implemented in pure [Liquid](https://shopify.github.io/liquid/)
## Table of Contents <!-- omit in toc -->
- [Installation](#installation)
- [Usage](#usage)
- [Specifying the Page Language](#specifying-the-page-language)
- [Customizing the Head](#customizing-the-head)
- [Navigation](#navigation)
- [Social Links](#social-links)
- [Archive Pages](#archive-pages)
- [MathJax](#mathjax)
- [Disqus](#disqus)
- [Google Analytics 4](#google-analytics-4)
- [More Customization](#more-customization)
- [Contributing](#contributing)
- [Development](#development)
- [License](#license)
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "jekyll-theme-fermi"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: jekyll-theme-fermi
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-theme-fermi
## Usage
The Fermi theme is easy to use. You just need to refer to the demo's [`_config.yml`](https://github.com/v4vong/jekyll-theme-fermi/blob/gh-pages/_config.yml) file, modify some properties and you can use it immediately.
### Specifying the Page Language
You can specify the language on each page by setting the `lang` property. If the property is not set, the `site.lang` would be referred. If the `site.lang` is not set, the default value `en` would be applied.
### Customizing the Head
If you want to put more data into the `<head>`, you don't need to copy the whole `_includes/head.html` file from this repo and overwrite it in your repo. You just need to create a `_includes/custom-head.html` file in your repo, and put some data into there. These data will be automatically imported into the `<head>`.
### Navigation
The navigation in Fermi is very easy to configure, just specify the titles and URLs in the [`_data/navigation.yml`](https://github.com/v4vong/jekyll-theme-fermi/blob/gh-pages/_data/navigation.yml) file, for example,
```yml
- title: Home
url: /
- title: About
url: /about.html
- title: Archive
url: /archive.html
```
### Social Links
The social links in Fermi is also very easy to connfigure. You don't need to import any large SVG file to render the icons because Fermi supports the [Font Awesome](https://fontawesome.com/). Specify the titles, URLs, and icons in the [`_data/social.yml`](https://github.com/v4vong/jekyll-theme-fermi/blob/gh-pages/_data/social.yml) file, for example,
```yml
- title: Email
url: mailto:[email protected]
icon: fas fa-envelope
- title: Twitter
url: https://twitter.com/v4vong
icon: fab fa-twitter
- title: GitHub
url: https://github.com/v4vong
icon: fab fa-github
```
### Archive Pages
Fermi provides a template `archive` to archive posts by years, categories, or tags.
If you want to show an archive page of years, just create a file and put these front matter in it:
```yml
---
layout: archive
type: years
title: Archive by Years
---
```
Similarly, if you want to show an archive page of categories, just create a file and put these front matter in it:
```yml
---
layout: archive
type: categories
title: Archive by Categories
---
```
Besides, if you want the categories and tags displayed in the post to link to the archive pages, you need to configure the paths to the category and tag archive pages in the `_config.yml` file, for example:
```yml
categories_path: /categories/
tags_path: /tags/
```
### MathJax
Fermi relies on the [MathJax](https://www.mathjax.org/) to render math. The MathJax is disabled by default. You need to set `math: true` on the page where you want to enable the MathJax.
### Disqus
To enable [Disqus](https://disqus.com/), just set the [Disqus shortname](https://help.disqus.com/en/articles/1717111-what-s-a-shortname) in the `_config.yml`, for example,
```yml
disqus: <your disqus shortname>
```
### Google Analytics 4
Fermi support the [Google Analytics 4](https://support.google.com/analytics/answer/10089681). To enable it, just set the Measurement ID in the `_config.yml`, for example,
```yml
google_analytics: G-XXXXXXXXXX
```
### More Customization
You can easily modify some styles of this theme, such as colors and fonts. You don't have to copy a lot of CSS into your repository, just copy [`_sass/fermi/_variables.scss`](_sass/fermi/_variables.scss) and change the variable value.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/v4vong/jekyll-theme-fermi. 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-theme-fermi.gemspec` accordingly.
## License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

al-folio
al-folio 是一个面向学者与研究人员的 Jekyll 作品集主题,设计简洁、响应式,适合搭建个人学术主页。
Jekyll · 作品集

minimal-mistakes
:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
Jekyll · 作品集

Beautiful Jekyll
Beautiful Jekyll 是一个在 Jekyll 生态中经过长期打磨的博客主题,由 Dean Attali 维护,自 2015 年起积累了超过 5 万用户。
Jekyll · 博客

jekyll-TeXt-theme
💎 🐳 A super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc.
Jekyll · 博客

startbootstrap-clean-blog-jekyll
A Jekyll version of the Clean Blog theme by Start Bootstrap
Jekyll · 博客

So Simple
So Simple 是 Michael Rose 开发的 Jekyll 主题,定位清晰:为文字和图片提供一个干净、可读性强的展示框架。
Jekyll · 博客
