以极小页面体积为目标的 Jekyll 主题,提供可关闭的 favicon 等低字节替代方案
featherweight — Jekyll 启动器模板
作者 Cutwell
Featherweight 是一个基于 Jekyll 的超轻量主题,以极小页面体积为目标,提供博客、RSS、站点地图与可选的压缩和外观增强功能。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
使用 Zopfli 与 Brotli 预压缩,并以 .gz 和 .html 作为回退
通过 jekyll-anti-image-reflow 插件为懒加载图片设置宽高,减少页面回流
可在 _config.yml 中开关 SEO、阅读时间、加载耗时、页面大小、社交页脚、博客列表、CSS 与 favicon
支持作为远程主题集成到已有 Jekyll 项目,并附带 GitHub Actions 构建部署工作流
模板详细介绍
Featherweight 是 Cutwell 发布的 Jekyll 主题,定位为超轻量、极简的网站起点。它通过 Zopfli 与 Brotli 预压缩、可关闭的 favicon 以及基于少量 CSS 的样式控制页面体积,并借助 jekyll-anti-image-reflow 插件在图片懒加载时设置宽高,减少页面回流。主题默认提供首页、博客文章、联系链接、RSS 与站点地图等基础结构,博客文章使用 GitHub 风格 Markdown 编写,文件名需遵循 YYYY-MM-DD-title.md 约定。
在功能配置上,_config.yml 集中管理站点 URL、压缩与外观选项。SEO 元数据、阅读时间、加载耗时、页面字节数、社交页脚、博客列表、基础 CSS 与 favicon 均可按需开启或关闭;其中加载耗时和页面大小依赖 JavaScript。主题既可作为独立站点使用,也可作为远程主题集成到已有 Jekyll 项目。
使用限制方面,若在 GitHub Pages 上构建,内置构建不会运行受支持插件列表之外的 gem,需要改用仓库提供的 build_and_deploy.yml 工作流,将构建结果推送到 gh-pages 分支并让 Pages 从该分支部署。作为远程主题集成时,README 建议使用 Cutwell/jekyll-build-action 以支持主题 gem 对 Ruby 3.0.0 的依赖,并需复制 _config.yml、Gemfile、index.md 与 _includes/contact.md 进行定制。压缩回退行为在不同浏览器间存在差异,部分浏览器会回退到 .html。
适合你的项目吗?
适用场景
- 搭建以文字博客为主、希望控制页面体积的 Jekyll 站点
- 在 GitHub Pages 上托管并需要绕过内置构建插件限制的项目
- 将轻量主题作为远程主题接入已有 Jekyll 仓库
- 需要 RSS 订阅与站点地图输出的个人站点
适合人群
- 熟悉 Jekyll 与 Markdown 写作流程的开发者
- 偏好极简页面、可接受默认样式较少的站点作者
- 需要按需开启 SEO、阅读时间等可选功能的博客项目
- 使用 GitHub Actions 自行构建并部署到 gh-pages 分支的仓库
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
本地构建:克隆仓库后执行 bundle install,再运行 bundle exec jekyll serve
- 2
在 GitHub Pages 上使用内置构建无法运行受支持列表之外的 gem,需改用 .github/workflows/build_and_deploy.yml 工作流
- 3
该工作流将构建结果推送到 gh-pages 分支,需确保该分支存在并将 Pages 部署来源设为该分支
- 4
作为远程主题使用时,复制 _config.yml、index.md 与 _includes/contact.md,并在 Gemfile 中声明 featherweight gem
- 5
博客文章放在 _pages/ 下,使用 layout: post 与 YYYY-MM-DD-title.md 命名约定
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 在 GitHub Pages 上使用内置构建时,无法运行受支持插件列表之外的 gem,因此需改用仓库提供的 build_and_deploy.yml 工作流自行构建。
- 使用附带工作流时,构建结果会推送到 gh-pages 分支,必须确保该分支存在,并将 GitHub Pages 的部署来源设置为该分支。
- 作为远程主题集成时,主题 gem 依赖 Ruby 3.0.0,README 建议使用 Cutwell/jekyll-build-action 以支持该依赖。
- 压缩回退行为因浏览器而异,部分浏览器会回退到 .html 文件。
- 加载耗时显示功能需要 JavaScript 支持。
- 页面字节数显示功能需要 JavaScript 支持。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
the built-in build action won't run gems outside of the [supported plugins list](https://pages.github.com/versions/)
README 原文
The workflow pushes the build to `gh-pages` branch, so make sure this exists and your GitHub page is set to deploy from this branch.
README 原文
to support the theme gem's dependence on Ruby 3.0.0
README 原文
Support seems to vary between browsers, and some will fallback to `.html`.
README 原文
Show off your page load times in the page footer. (Requires JS)
README 原文
https://github.com/Cutwell/featherweight/blob/main/LICENSEhttps://github.com/Cutwell/featherweight/blob/main/README.mdReport the webpage size in bytes, also displayed in the page footer. (Requires JS)
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Jekyll
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-10-23
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Jekyll。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: b84c569e287a617ef747037004b22c18c30016112c308358c8962826e71e243a
2026-10-03T00:17:35.783Z
来源文件 / 仓库`Featherweight` is an ultra-lightweight Jekyll theme, aiming to minimise bandwidth usage and deliver a bare-bones experience (page sizes of ~1kb). [][ruby-gems] [ruby-gems]: https://rubygems.org/gems/featherweight #### Building on GitHub If you're using this site on GitHub pages, the built-in build action won't run gems outside of the [supported plugins list](https://pages.github.com/versions/). To enable these gems, use the `build_and_deploy.yml` action under `.github/workflows` to automatically build your site on pushes, which circumvents this restriction while still hosting using GitHub pages (as advised by [Jekyll](https://jekyllrb.com/docs/continuous-integration/github-actions/)). The workflow pushes the build to `gh-pages` branch, so make sure this exists and your GitHub page is set to deploy from this branch. #### Featherweight as a remote theme `Featherweight` can be used as a remote theme, enabling integration into existing projects. We recommend using the same action setup as described above, but using the [Cutwell/jekyll-build-action](https://github.com/Cutwell/jekyll-build-action) action, to support the theme gem's dependence on Ruby 3.0.0. Copy the `_config.yml` file into your repository root, adding the following markup to specify the theme: ```yml theme: featherweight ``` Also create a `Gemfile` file in the repository root, with the following content: ```Gemfile source "https://rubygems.org" gem 'featherweight', '~> 0.7.6' ``` Additionally, copy the `index.md` and `_includes/contact.md` files, and customise them to personalise your site. With this setup, the theme will now build and install. See [Cutwell/cutwell.github.io](https://github.com/Cutwell/cutwell.github.io) for an example of this theme being used remotely. #### Writing blog posts Create a blank `.md` file in `_pages/`, and add: ``` --- layout: post title: My blog post. description: A description of the post, used for metadata. image: (optional) an image to display when linking to the post on e.g.: Twitter or Facebook --- ``` Write your blog post in GitHub-flavoured-markdown below the metadata. When naming blog post files, use the `YYYY-MM-DD-title.md` convention, or else your post won't appear in the blog post list. Read the [Jekyll docs](https://jekyllrb.com/docs/posts/). #### Cheatsheet ||| |:--:|:--:| | _Config_ | Update site URL and othe default options using `_config.yml`. | | _Homepage_ | Customise your homepage by editing the `index.md` file. | | _Social media_ | Update your contact links for your homepage and post footer (optional) by editing `_includes_/contact.md` | | _RSS_ | The RSS feed can be found at <https://yourgithubusername.github.io/feed>. | | _Sitemap_ | The sitemap can be found at <https://yourgithubusername.github.io/sitemap>. | | _Quickstart_ | Test your website locally by following the [Jekyll quickstart guide](https://jekyllrb.com/docs/). | | _gzip compression_ | Files are compressed using [Zopfli](https://github.com/philnash/jekyll-zopfli) compression. GitHub GZip's files automatically before serving, but we can use more aggressive pre-compression to achieve better compression, and avoid server overhead to compress on-the-fly. Support seems to vary between browsers, and some will fallback to `.html`. | | _Brotli compression_ | We also compress files using Google's [Brotli](https://en.wikipedia.org/wiki/Brotli) algorithm. We serve `.gz` and `.html` as fallback, although `.br` [has good support](https://caniuse.com/brotli). | | _Page reflow protection_ | To prevent page-reflow whilst lazy-loading images, we set image height and width using `Cutwell/jekyll-anti-image-reflow` gem plugin. Note it will not override existing styling to loading, width or height attributes. | #### Cosmetics `Featherweight` allows you to enable numerous cosmetic upgrades for your site. Toggle these options in the `compression` settings in `_config.yml`. These cosmetics all add to the total page weight, but can significantly improve the UX. Many of these are entirely optional settings. If you're looking to create a truly minimal webpage, read the comments inside `_config.yml`. ||| |:--:|:--:| | _SEO_ | Enabling search engine optimisations will add metadata for search engines and sharing on social media. | | _Reading time_ | To display an estimated reading time for blog posts. | | _Load time_ | Show off your page load times in the page footer. (Requires JS) | | _Page size_ | Report the webpage size in bytes, also displayed in the page footer. (Requires JS) | | _Social media footer_ | Display social media links below blog posts. | | _Blog list_ | Toggle the display of your blog list on the homepage. | | _CSS_ | Add some basic styling, based on [58 bytes of CSS to look great nearly everywhere](https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41). Also add some basic image styling to blog posts, working in combination with `anti-image-reflow` to fit images to the blog width without causing jank. Customise CSS by editing `_includes/main.css`. | | _Favicons_ | Generate icons for your site using [https://realfavicongenerator.net/](https://realfavicongenerator.net/), or disable favicons using `_config.yml` to use a low-byte-count alternative. Change file names or theme colours using `_config.yml`. | #### Dev _Build locally_ 1. Clone this repository: `git clone https://github.com/Cutwell/featherweight.git` 2. Download the project dependencies: `bundle install` 3. Run a local Jekyll server: `bundle exec jekyll serve` _Build .gem_ 1. Update version in `.gemspec` 2. Build with `gem build featherweight.gemspec` 3. Push to RubyGem with `gem push featherweight-x.x.x.gem` #### Credit feather by GREY Perspective from <a href="https://thenounproject.com/browse/icons/term/feather/" target="_blank" title="feather Icons">Noun Project</a>
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

jekyll-klise
:beach_umbrella: Klisé is a minimalist Jekyll theme for running a personal site or blog, light & dark mode sup…
Jekyll · 博客

alembic
⚗️ A Jekyll boilerplate theme designed to be a starting point for any Jekyll website
Jekyll · 启动器

academic-website-template
Static web template for academics/research groups
Jekyll · 启动器

jekyll-course-website-template
Feature-rich and easy-to-use Jekyll website template for academic courses
Jekyll · 启动器

agency-jekyll-theme-starter
Agency Jekyll Theme starter template (optimized for GitHub Pages)
Jekyll · 企业官网

research-lab-website
A template for a Research Lab website, built with Jekyll.
Jekyll · 启动器
