基于 Hugo 与 Bootstrap 5.3 的博客主题,界面简洁、适配移动端
hugo-bootstrap-blog — Hugo 博客模板
作者 ngs
基于 Hugo 与 Bootstrap 5.3 的博客主题,提供模块化侧边栏、深色模式与多语言支持,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持自动与手动深色模式切换
内置英语与日语多语言支持,可配置语言列表
侧边栏以模块组合,可选搜索、作者资料、分类、标签、归档、社交、目录、相关文章、订阅、热门文章与广告位等模块
使用 Lunr.js 实现客户端搜索,无需额外搜索服务
MIT 许可,允许使用、修改、商用与分发,需保留版权与许可声明
模板详细介绍
这是一个面向博客的 Hugo 主题,使用 Bootstrap 5.3 构建界面,仓库与 README 说明其定位是干净、响应式的博客外观,并附带可配置的侧边栏模块。
功能方面,主题提供自动与手动切换的深色模式、内置英语与日语的多语言支持、基于 Lunr.js 的客户端搜索,以及 SEO 相关配置和结构化数据。侧边栏以模块形式组织,可按配置启用搜索框、作者资料、分类、标签云、近期文章、归档、社交链接、目录、相关文章、订阅表单、热门文章与广告位等模块,并可选择侧边栏位于左侧或右侧。
使用上,主题要求 Hugo 0.120.0 或更高版本,构建 SCSS 与运行测试需要 Node.js 16 及以上。安装方式支持 Git 子模块或 Hugo Modules,仓库提供 exampleSite 的配置与示例内容可供复制。README 中列出的性能分数、无障碍合规等级等描述属于作者自述,未在本次资料中独立核验。
许可方面,该版本代码采用 MIT 许可,允许使用、修改、商用与分发,分发时需保留版权与许可声明;演示图片、字体、图标等第三方素材需按各自许可单独核对。
适合你的项目吗?
适用场景
- 用 Hugo 搭建以文章阅读为主的个人博客或技术博客
- 需要深色模式与移动端适配的博客站点
- 面向英语与日语读者的双语博客
- 希望通过配置组合侧边栏模块(如标签云、归档、相关文章)的站点
适合人群
- 使用 Hugo 并希望直接套用现成博客主题的开发者
- 需要多语言与深色模式的博客作者
- 偏好 Bootstrap 样式体系、希望自行调整 SCSS 的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
环境要求:Hugo 0.120.0 或更高版本;构建 SCSS 与运行测试需要 Node.js 16 及以上
- 2
可通过 git submodule add 添加主题,或使用 Hugo Modules 在 hugo.toml 中导入
- 3
可复制 exampleSite 中的 hugo.toml 与 content 目录作为起点
- 4
生产构建流程为 npm install、npm run build 编译 SCSS,再执行 hugo --minify
- 5
演示图片、字体、图标等第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/ngs/hugo-bootstrap-blog/blob/master/LICENSE.mdhttps://github.com/ngs/hugo-bootstrap-blog/blob/master/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-12。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 79 / 100
- 技术栈
- Hugo · HTML
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-08-28
- 截图检查日期
- 2026-10-12
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: 5773ad2f54f58e82b28e54f118f995a71053a80926c0eea582861007b488906e
2026-10-12T15:52:54.444Z
来源文件 / 仓库# Hugo Bootstrap Blog Theme
A clean, responsive Hugo theme for blogging with Bootstrap 5.3, featuring modular sidebar, dark mode, and i18n support.

## Features
- ✨ **Clean & Modern Design** - Minimalist design focused on readability
- 📱 **Fully Responsive** - Looks great on all devices
- 🌙 **Dark Mode** - Automatic and manual dark mode switching
- 🔧 **Modular Sidebar** - Customizable sidebar with various widgets
- 🌍 **Multilingual** - Built-in support for English and Japanese
- 🔍 **Search** - Client-side search with Lunr.js
- ⚡ **Fast** - Optimized for performance (Lighthouse 95+)
- ♿ **Accessible** - WCAG 2.1 AA compliant
- 🎨 **Bootstrap 5.3** - Latest Bootstrap framework
- 📊 **SEO Optimized** - Built-in SEO features and structured data
## Demo
View the live demo: [Hugo Bootstrap Blog Demo](https://hugo-bootstrap-blog.netlify.app)
## Requirements
- Hugo 0.120.0 or later
- Node.js 16+ (for building SCSS and running tests)
## Installation
### As a Git Submodule
```bash
git submodule add https://github.com/ngs/hugo-bootstrap-blog themes/hugo-bootstrap-blog
```
### Using Hugo Modules
1. Initialize Hugo Modules in your project:
```bash
hugo mod init github.com/yourusername/your-site
```
2. Add the theme to your `hugo.toml`:
```toml
[module]
[[module.imports]]
path = "github.com/ngs/hugo-bootstrap-blog"
```
## Quick Start
1. Copy the example site configuration:
```bash
cp themes/hugo-bootstrap-blog/exampleSite/hugo.toml .
```
2. Copy example content (optional):
```bash
cp -r themes/hugo-bootstrap-blog/exampleSite/content .
```
3. Start the Hugo server:
```bash
hugo server
```
## Configuration
### Basic Configuration
```toml
baseURL = "https://example.com/"
languageCode = "en"
title = "My Blog"
theme = "hugo-bootstrap-blog"
paginate = 10
[params]
description = "A modern blog built with Hugo and Bootstrap"
darkMode = true
enableSearch = true
showReadingTime = true
```
### Sidebar Modules
Configure which modules appear in the sidebar:
```toml
[params]
sidebarPosition = "right" # "left" or "right"
sidebarModules = [
"search",
"profile",
"categories",
"tags",
"recent",
"archives",
"social"
]
```
Available modules:
- `search` - Search box with live search functionality
- `profile` - Author profile with avatar and bio
- `categories` - Categories list with post count
- `tags` - Tag cloud with weighted sizes
- `recent` - Recent posts list
- `archives` - Monthly/yearly post archives
- `social` - Social media links
- `toc` - Table of contents (single pages only)
- `related` - Related posts (single pages only)
- `newsletter` - Newsletter subscription form
- `popular` - Popular/featured posts with thumbnails
- `advertisement` - Advertisement space placeholder
### Author Information
```toml
[params.author]
name = "John Doe"
bio = "Web developer and blogger"
avatar = "/images/avatar.jpg"
email = "[email protected]"
```
### Social Links
```toml
[params.social]
twitter = "https://twitter.com/username"
github = "https://github.com/username"
linkedin = "https://linkedin.com/in/username"
facebook = ""
instagram = ""
youtube = ""
```
### Advertisement Module
To enable advertisements in the sidebar:
```toml
[params.advertisement]
enabled = true
code = """
<!-- Your ad code here -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="auto"></ins>
"""
```
### Menu Configuration
```toml
[menu]
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "Posts"
url = "/posts/"
weight = 2
[[menu.main]]
name = "About"
url = "/about/"
weight = 3
```
## Multilingual Support
The theme supports multiple languages. Configure in `hugo.toml`:
```toml
defaultContentLanguage = "en"
[languages]
[languages.en]
languageName = "English"
weight = 1
[languages.ja]
languageName = "日本語"
weight = 2
```
## Content Structure
### Front Matter
```yaml
---
title: "Post Title"
date: 2024-01-15
description: "Post description"
categories: ["Tutorial"]
tags: ["Hugo", "Bootstrap"]
image: "/images/featured.jpg"
toc: true
author: "John Doe"
---
```
## Building for Production
1. Install dependencies:
```bash
npm install
```
2. Build SCSS:
```bash
npm run build
```
3. Build the site:
```bash
hugo --minify
```
## Development
### Build SCSS
```bash
npm run build:scss
```
### Watch SCSS
```bash
npm run watch:scss
```
### Run development server
```bash
npm run dev
```
### Generate screenshots
```bash
npm run screenshot
```
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## License
This theme is released under the [MIT License](LICENSE.md).
## Credits
- [Hugo](https://gohugo.io/)
- [Bootstrap](https://getbootstrap.com/)
- [Bootstrap Icons](https://icons.getbootstrap.com/)
- [Lunr.js](https://lunrjs.com/)
## Author
**Atsushi Nagase**
- Website: [https://ngs.io](https://ngs.io)
- GitHub: [@ngs](https://github.com/ngs)
## Support
If you find this theme useful, please consider:
- Starring the repository on GitHub
- Sharing it with others
- [Reporting issues](https://github.com/ngs/hugo-bootstrap-blog/issues)
- [Contributing](https://github.com/ngs/hugo-bootstrap-blog/pulls)看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 文档
