基于 NES.css 框架,呈现 NES 风格的 8 位像素界面
hugo-8bits-theme — Hugo 博客模板
作者 miguelsimoni
基于 NES.css 的 Hugo 博客主题,用 8 位像素风格呈现文章、关于页与联系表单。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 config.yaml 开关多语言菜单、面包屑当前页与分页加载按钮
支持自定义背景图片,并可为文章区域开启视差与调整速度
联系页可接入 Formspree 等服务的表单 action URL
评论由 Disqus 提供,统计由 Google Analytics 提供,均可留空关闭
exampleSite 提供 post 文章示例以及 about、contact 页面内容
模板详细介绍
hugo-8bits-theme 是一个 Hugo 主题,视觉风格建立在 NES.css 这一 NES 风格 CSS 框架之上,整体呈现 8 位像素游戏界面感。它适合用来搭建以文章列表为核心的博客,仓库同时包含 about.md 与 contact.md 示例内容,分别对应关于页和联系页。
主题通过 exampleSite/config.yaml 集中配置。可开关的功能包括:多语言下拉菜单(languagesMenuEnabled)、面包屑是否显示当前页(breadcrumb.showCurrent)、列表页的分页加载按钮(pagination.loader,关闭后改用标准分页控件)。背景支持在 static/images/ 放入图片后通过 params.background.image 指定,并可对文章区域开启视差与设置速度。
联系表单本身不提供服务端,需要填入 Formspree 等消息服务的表单 action URL 才能实际接收提交。评论使用 Disqus,通过 disqusShortname 配置,留空即关闭;统计使用 Google Analytics,通过 googleAnalytics 配置,留空即关闭。社交链接在 config.yaml 的 social 列表中按 network 与 link 填写。
安装方式为将仓库作为 git submodule 添加到 Hugo 站点的 themes/hugo-8bits-theme 目录。仓库的 exampleSite 基于 Hugo Basic Example,本地可用 hugo server -t ../.. 预览。主题代码采用 MIT 许可;演示图片、字体、图标等第三方素材以及 Formspree、Disqus 等外部服务的许可与费用需单独核对。
适合你的项目吗?
适用场景
- 搭建以文章列表和文章页为主的个人博客
- 制作带有关于页与联系表单的站点
- 需要多语言下拉菜单与面包屑导航的内容站点
- 希望用像素游戏风格统一视觉的 Hugo 项目
适合人群
- 使用 Hugo 并熟悉 config.yaml 配置的开发者
- 偏好 8 位像素视觉风格的个人博客作者
- 需要 Disqus 评论与 Google Analytics 统计的站点
- 接受联系表单依赖 Formspree 等外部服务的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在 Hugo 站点目录执行 git submodule add https://github.com/miguelsimoni/hugo-8bits-theme.git themes/hugo-8bits-theme 完成安装
- 2
参考 exampleSite/config.yaml 配置多语言菜单、面包屑、分页加载、背景、社交链接等参数
- 3
联系表单需在 config.yaml 的 contact.formAction 填入 Formspree 等服务的表单 URL 才能接收提交
- 4
评论与统计分别通过 disqusShortname、googleAnalytics 配置,留空即关闭
- 5
本地预览可进入 exampleSite 执行 hugo server -t ../..,再访问 http://localhost:1313/
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 联系表单本身不提供服务端,需自行注册 Formspree 等第三方消息服务并填入表单 action URL 才能实际接收访客提交,可能涉及该外部服务的账号、配额或费用。
- 评论功能依赖第三方 Disqus 服务,需配置 disqusShortname 并受 Disqus 自身条款约束;留空则关闭评论。
- 统计功能依赖 Google Analytics 外部服务,需自行提供跟踪 ID;留空则关闭统计。
- 主题代码采用 MIT 许可,但所依赖的 NES.css 框架及演示图片、字体、图标等第三方素材的许可需另行核对,不随本仓库的 MIT 授权一并覆盖。
- README 提及 Formspree 表单服务;真实提交需配置服务端点,其使用额度与费用需单独核对。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
You can enable de Contact form to let visitors send you messages using a message service like [Formspree](https://formspree.io/) just adding your contact form action URL in `config.yaml`
README 原文
Powered by [Disqus](https://disqus.com)
README 原文
googleAnalytics: "UA-123-45"
README 原文
https://github.com/miguelsimoni/hugo-8bits-theme/blob/main/LICENSE.mdhttps://github.com/miguelsimoni/hugo-8bits-theme/blob/main/README.mdThis theme and the framework that made it possible are released under the MIT License. Check the [original framework license](https://github.com/nostalgic-css/NES.css#copyright-and-license) for additional licensing information.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 69 / 100
- 技术栈
- Hugo · HTML
- 网站类型
- 博客 · 工具站
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2021-07-29
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: a054ee68686f6ece449dbf764d96d2456344b8ba070554ab866069d8f2ef3404
2026-10-02T10:18:41.548Z
来源文件 / 仓库# Hugo 8-bits Theme








[Hugo 8-bits Theme](https://miguelsimoni.github.io/hugo-8bits-site/) is based on the [NES-style CSS Framework](https://nostalgic-css.github.io/NES.css/) developed by [@bc_rikko](https://twitter.com/bc_rikko).

[Live Demo](https://miguelsimoni.github.io/hugo-8bits-site/)
### NES.css Framework Info
|||
|-|-|
|**Name** | NES.css |
|**Description** | NES-style CSS Framework |
|**Designer** | [BcRikko](https://github.com/BcRikko) |
|**Version** | 2.3.0 |
|**Released** | Dec 17, 2019 |
|**License** | [Licensing information](https://github.com/nostalgic-css/NES.css#copyright-and-license) |
## Installation
```
$ cd /<your-hugo-site-directory>
$ git submodule add https://github.com/miguelsimoni/hugo-8bits-theme.git themes/hugo-8bits-theme
```
More info: [hugo setup guide](https://gohugo.io/overview/installing/)
## Configuration
[config.yaml](https://github.com/miguelsimoni/hugo-8bits-theme/blob/main/exampleSite/config.yaml)
### Multilingual
You can show or hide the Languages dropdown menu from `config.yaml`:
```yaml
languagesMenuEnabled: true
```
### Breadcrumb
You can show or hide the current page in the breadcrumb from `config.yaml`:
```yaml
breadcrumb:
showCurrent: true
```
### Pagination Loader
You can enable or disable the pagination loader (Load More button) in the list pages from `config.yaml`:
```yaml
pagination:
loader: true
```
Disabling it will show the standard pagination widget.
### Background
You can set a theme background just dropping an image on the `static/images/` folder and typing its name on the `params.background.image` parameter. Also you can set a parallax effect and its speed for the posts section.
```yaml
background:
image: "../images/background.png"
parallax: true
speed: 10
```
### Contact
You can enable de Contact form to let visitors send you messages using a message service like [Formspree](https://formspree.io/) just adding your contact form action URL in `config.yaml`:
```yaml
contact:
formAction: https://formspree.io/f/yourformcode
```
### Social Networks
You can add the usernames for the current supported social networks in `config.yaml`:
```yaml
social:
- network: twitter
link: "https://www.twitter.com/8bits"
- network: facebook
link: "https://www.facebook.com/8bits"
- network: instagram
link: "https://www.instagram.com/8bits"
```
See [config.yaml](https://github.com/miguelsimoni/hugo-8bits-theme/blob/main/exampleSite/config.yaml) for more examples on social networks parameterization.
### Comments
Powered by [Disqus](https://disqus.com)
```yaml
disqusShortname: "yourdiscussshortname"
```
Disable the comments system by leaving `params.disqusShortname` empty.
### Google Analytics
```yaml
googleAnalytics: "UA-123-45"
```
Disable the Google Analytics by leaving `params.googleAnalytics` empty.
### More Settings!
See the whole configuration in the [config.yaml](https://github.com/miguelsimoni/hugo-8bits-theme/blob/main/exampleSite/config.yaml) file.
## Example Site
The [`exampleSite`](https://github.com/miguelsimoni/hugo-8bits-theme/tree/main/exampleSite) folder is based on [Hugo Basic Example](https://github.com/gohugoio/hugoBasicExample) and offers an example site for this theme.
The `exampleSite/content/` folder contains the following:
- A section called `/post/` with sample markdown content.
- An `about.md` that is intended to provide the `/about/` page for a theme demo.
- A `contact.md` that is intended to provide the `/contact/` page for a contact form.
## Almost there...
In order to see your site in action, you can run Hugo's built-in local server.
```bash
$ cd exampleSite
$ hugo server -t ../..
```
Now enter [`http://localhost:1313/`](http://localhost:1313/) in the address bar of your browser.
## Deployment
- [Hosting on GitHub](https://gohugo.io/hosting-and-deployment/hosting-on-github/)
- [More hosting and deployment options](https://gohugo.io/hosting-and-deployment/)
## Contributing
- Found a bug?
- Got an idea for a new feature?
Let me know it using the [issue tracker](https://github.com/miguelsimoni/hugo-8bits-theme/issues) or make it directly with a [pull request](https://github.com/miguelsimoni/hugo-8bits-theme/pulls).
## License
This theme and the framework that made it possible are released under the MIT License. Check the [original framework license](https://github.com/nostalgic-css/NES.css#copyright-and-license) for additional licensing information.
## Thanks
Thanks to [Steve Francia](https://github.com/spf13) for creating Hugo and the awesome community around the project. And also thanks to [BcRikko](https://github.com/BcRikko) for creating this awesome nostalgic framework.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-PaperMod
PaperMod 是 Hugo 生态里知名度较高的主题之一,定位很明确:给博客和轻量作品集站点提供一套干净、响应式的阅读界面。
Hugo · 作品集

LoveIt
❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
Hugo · 博客

hugo-coder
A minimalist blog theme for hugo.
Hugo · 博客

blowfish
Personal Website & Blog Theme for Hugo
Hugo · 博客

hugo-paper
🪺 A simple, clean, customizable Hugo theme
Hugo · 博客

hextra
Hextra 是一个 Hugo 主题,定位在文档站与博客之间:既提供侧边栏导航、目录、面包屑、分页这类文档站结构,也能承载博客内容。
Hugo · 文档
