HBS(Hugo Bootstrap) 是一个快速、响应式和功能齐全的 Hugo 主题,可用于个人博客和文档。 在安装主题前,请确保你满足先决条件 。 先决条件 Configuration 自 0.68.0,HBS 要求设置以下配置。 config.toml yaml json 1[build] 2writeStats = true 1build:2writeStats:true1{ 2"build": { 3"writeStats": true 4} 5} 构建工具 Git 。 Hugo :extended 0.84.0 版本或以上。 npm :用于安装 CSS 和 JS 依赖。 Go : 1.12 版本或以上,仅当安...

默认情况下,使用此主题的站点具有默认字体、颜色和总体外观。但是,默认方案不可能满足所有人的要求,但是不要担心,你可以轻松地覆盖主题默认值,例如调色板颜色、字体、语法高亮。

This article refers to the traditional installation method of cloning the theme locally as Git submodule. It describes how to install, upgrade the theme, and write new articles. While this installation method is still widely used, we recommend to install the theme as Hugo module . 安装 从头开始创建站点 1$ hugo new site myblog 2$...

This article refers to the modern, up-to-date installation method of installing the theme locally as Hugo module. It describes how to install, upgrade the theme, and write new articles. Proxy (optional) If you’re located at China mainland without VPN, the Hugo module download may fail. There are two proxies for this:...

Main Sections mainSections 参数用于过滤页面,默认为 ["posts", "docs"]。 1mainSections = ["blog", "posts", "docs", "notes"] 内容类型 你可能想在其他 Section 中使用 docs 布局,比如 /notes。这可以通过在 front matter 中设置 type = "docs" 实现。 文章原型 我们也可以为 notes 创建一个原型,让 Hugo 处理 type。 1$ cp themes/hugo-theme-bootstrap/archetypes/default.md archetypes/notes.md...