Hugo Bootstrap Theme(HBS) 是一个快速、响应式、多用途和功能丰富的 Hugo 主题。其通常用于博客和文档站点。
在安装主题前,请确保你满足先决条件。
This article refers to the modern, up-to-date installation method of installing the theme locally as Hugo module. Proxy (Optional)§ If you’re located at China mainland without VPN, the Hugo module download may fail. There are two proxies for this: GOPROXY.CN and GOPROXY.IO. 1$ export...
在本文中,我们将探讨 docs
布局,其可用来编写项目文档,个人笔记等。
我们预定义了两种类型的菜单:main
和 footer
,分别表示顶部的应用程序栏菜单和页脚菜单。
本文将简要介绍如何使用菜单。
This article refers to the traditional installation method of cloning the theme locally as Git submodule. While this installation method is still widely used, we recommend to install the theme as Hugo module. 从头开始创建站点§ 1$ git clone https://github.com/razonyang/hugo-theme-bootstrap-skeleton myblog 2$ cd myblog 3$ git...
主要 Sections§ mainSections 参数用于过滤页面,默认为 ["posts", "docs"]。 1mainSections = ["blog", "posts", "docs", "notes"] Front Matter§ Front Matter is the place where we put page metadata and parameters, such as title, date and so on. Formats§ Hugo supports three formats of front matter: YAML, TOML and JSON. TOML: identified by...
Image viewer is an image gallery, it will be shown up when you click a non-linkable image.
It also provides many tools, such as zoom in, zoom out and rotate.
默认情况下,使用此主题的站点具有默认字体、颜色和总体外观。但是,默认方案不可能满足所有人的要求,但是不要担心,你可以轻松地覆盖主题默认值,例如调色板颜色、字体、语法高亮。