code-toggle
shortcode 根據任意支持的配寘程式碼,生成多種格式等效的程式碼塊。
在安装主题前,请确保你满足先决条件。
Hugo Bootstap Theme(HBS) 是一个快速、响应式、多用途和功能丰富的 Hugo 主题。其通常用于博客和文档站点。
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:...
在本文中,我们将探讨 docs
布局,其可用来编写项目文档,个人笔记等。
我们预定义了两种类型的菜单:main
和 footer
,分别表示顶部的应用程序栏菜单和页脚菜单。
本文将简要介绍如何使用菜单。
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$ git clone...
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...
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.