基于 Tachyons 构建的 Jekyll 博客主题,代码与设计保持精简
jekyll-theme-tfg — Jekyll 博客模板
作者 vfvong
jekyll-theme-tfg 是一个基于 Tachyons 构建的 Jekyll 博客主题,提供明暗模式、纯 Liquid 归档页、Google Analytics 4、Disqus、MathJax 与 Font Awesome 支持。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 prefers-color-scheme 支持明暗两种模式
归档页用纯 Liquid 实现,可按年份、分类或标签生成
可配置 Google Analytics 4、Disqus 评论与 MathJax 数学公式
导航与社交链接通过 _data 下的 YAML 文件配置,社交图标使用 Font Awesome
支持 gem 安装,也可在 GitHub Pages 上通过 jekyll-remote-theme 引用
模板详细介绍
jekyll-theme-tfg(TFG,Tiny Friendly Giant)是一个用于搭建博客的 Jekyll 主题,名称取自 Koenigsegg Gemera 发动机的代号。主题构建在 Tachyons 之上,目标是在提供博客功能的同时尽量保持代码与设计精简。
功能方面,主题支持通过 prefers-color-scheme 实现的明暗模式;归档页用纯 Liquid 实现,可按年份、分类或标签生成;可接入 Google Analytics 4、Disqus 评论、MathJax 数学公式渲染与 Font Awesome 图标。导航与社交链接分别通过 _data/navigation.yml 和 _data/social.yml 配置。
使用方式上,可作为 gem 安装并在 _config.yml 中声明 theme,也可在 GitHub Pages 场景下通过 jekyll-remote-theme 以 remote_theme 方式引用。定制时可将 _sass/tfg/_variables.scss 复制到自己的仓库修改颜色与字体,或创建 _includes/custom-head.html 向 <head> 追加内容,无需覆盖整个 head.html。MathJax 默认关闭,需在页面设置 math: true 才启用。
许可方面,仓库采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码,分发时需保留版权声明与完整 MIT 许可声明;演示图片、字体、图标等第三方素材需另行核对其各自许可。
适合你的项目吗?
适用场景
- 用 Jekyll 搭建个人博客并需要明暗模式
- 需要按年份、分类或标签生成文章归档页
- 博客文章需要渲染数学公式(MathJax)
- 希望接入 Google Analytics 4 统计与 Disqus 评论
适合人群
- 使用 Jekyll 构建静态博客的开发者
- 在 GitHub Pages 上部署站点并希望以 remote_theme 引用主题的用户
- 偏好通过 YAML 数据文件配置导航与社交链接的人
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在 Gemfile 中加入 gem "jekyll-theme-tfg",并在 _config.yml 中设置 theme: jekyll-theme-tfg,然后执行 bundle
- 2
GitHub Pages 场景可改用 jekyll-remote-theme 插件,并设置 remote_theme: vfvong/jekyll-theme-tfg
- 3
定制颜色与字体:将 _sass/tfg/_variables.scss 复制到仓库对应路径后修改变量
- 4
向 <head> 追加内容:在仓库中创建 _includes/custom-head.html,无需覆盖 head.html
- 5
MathJax 默认关闭,需在目标页面设置 math: true 才启用
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 启用 Disqus 评论需自行注册 Disqus 账号并获取 shortname,评论功能依赖该第三方外部服务,可能受其服务条款与费用政策约束。
- 启用 Google Analytics 4 需自行注册 Google Analytics 账号并提供 Measurement ID,统计数据依赖该第三方外部服务。
- 数学公式渲染依赖第三方 MathJax,且默认关闭,需在页面设置 math: true 才启用。
- 社交图标依赖第三方 Font Awesome 资源,其图标素材的许可需另行核对。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
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 原文
TFG relies on the [MathJax](https://www.mathjax.org/) to render math. The MathJax is disabled by default.
README 原文
https://github.com/vfvong/jekyll-theme-tfg/blob/main/LICENSE.txthttps://github.com/vfvong/jekyll-theme-tfg/blob/main/README.mdYou don't need to import any large SVG file to render the icons because TFG supports the [Font Awesome](https://fontawesome.com/).
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 65 / 100
- 技术栈
- Jekyll
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2022-03-11
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Jekyll。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: cef8a3cb92c71d5db34cb75db58f2505e039335d8803ce8bfcd6c4b15bb7bcd8
2026-10-03T06:35:29.745Z
来源文件 / 仓库# Jekyll Theme TFG <!-- omit in toc -->
TFG is a tiny friendly giant Jekyll theme for powering blogs. The name of this theme is from [Koenigsegg Gemera](https://www.koenigsegg.com/gemera/)'s engine ["Tiny Friendly Giant"](https://www.koenigsegg.com/gemera/tiny-friendly-giant-engine/). It is small when it comes to emissions and consumption, and at the same time, it is big when it comes to power, torque, and sound. The target of this theme is similar—While providing friendly and powerful blog functions, try to keep the code and the design as tiny as possible.
TFG is built on [Tachyons](https://tachyons.io/).
Preview the [demo](http://vfvong.blog/jekyll-theme-tfg/).


## Highlight Features <!-- omit in toc -->
- 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/)
- [Google Analytics 4](https://analytics.google.com/analytics/web/)
- [Disqus](https://disqus.com/)
- [MathJax](https://www.mathjax.org/)
- [Font Awesome](https://fontawesome.com/)
## Table of Contents <!-- omit in toc -->
- [Installation](#installation)
- [Usage](#usage)
- [Customization](#customization)
- [Archive Pages](#archive-pages)
- [Google Analytics 4](#google-analytics-4)
- [Disqus](#disqus)
- [MathJax](#mathjax)
- [Navigation](#navigation)
- [Social Links](#social-links)
- [Contributing](#contributing)
- [Development](#development)
- [License](#license)
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "jekyll-theme-tfg"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: jekyll-theme-tfg
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-theme-tfg
If your website is hosted on GitHub Pages, you can install this theme via [`jekyll-remote-theme`](https://github.com/benbalter/jekyll-remote-theme).
Add the following to your `Gemfile`:
```ruby
gem "jekyll-remote-theme"
```
And add this line to your Jekyll site's `_config.yml`:
```yml
plugins:
- jekyll-remote-theme
```
Add the following to your site's `_config.yml`:
```yml
remote_theme: vfvong/jekyll-theme-tfg
```
## Usage
Ease of use is one of the design goals of TFG. Basically, you only need to refer to the [`_config.yml`](https://github.com/vfvong/jekyll-theme-tfg/blob/gh-pages/_config.yml) file of the demo to set the basic parameters required to run the website.
### Customization
You can of course fork the entire repository and make custom changes on your copy, but there is a much cleaner way: after referencing the theme, you just need to copy the [`_sass/tfg/_variables.scss`](https://github.com/vfvong/jekyll-theme-tfg/blob/main/_sass/tfg/_variables.scss) file to your repository in the corresponding path, and then modify some variables, you can customize the color and fonts you like.
If you want to put some extra data into the `<head>`, you don't need to overwrite the entire `_includes/head.html` file, and you just need to create a file `_includes/custom-head.html` in your repository, and then put your data into there.
### Archive Pages
TFG 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/
```
### Google Analytics 4
TFG 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
```
### 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>
```
### MathJax
TFG 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.
### Navigation
The navigation in TFG is very easy to configure, just specify the titles and URLs in the [`_data/navigation.yml`](https://github.com/vfvong/jekyll-theme-tfg/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 TFG is also very easy to connfigure. You don't need to import any large SVG file to render the icons because TFG supports the [Font Awesome](https://fontawesome.com/). Specify the titles, URLs, and icons in the [`_data/social.yml`](https://github.com/vfvong/jekyll-theme-tfg/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/vfvong
icon: fab fa-twitter
- title: GitHub
url: https://github.com/vfvong
icon: fab fa-github
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/vfvong/jekyll-theme-tfg. 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-tfg.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 · 博客
