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...