在安装主题前,请确保你满足先决条件。

Configuration

HBS 要求设置以下配置。

config.toml

1[build]
2  writeStats = true
3[taxonomies]
4  author = 'authors'
5  category = 'categories'
6  series = 'series'
7  tag = 'tags'

config.yaml

1build:
2  writeStats: true
3taxonomies:
4  author: authors
5  category: categories
6  series: series
7  tag: tags

config.json

 1{
 2   "build": {
 3      "writeStats": true
 4   },
 5   "taxonomies": {
 6      "author": "authors",
 7      "category": "categories",
 8      "series": "series",
 9      "tag": "tags"
10   }
11}

构建工具

Tool Version Description
Git Version Control Systems
Hugo extended version 0.97.0 or above.
Node.js and NPM NodeJS 16 or above used for installing CSS and JS dependencies, and building the assets.
Go 1.12 or above required only when installed as a Hugo Module.

我们建议使用这些工具的最新版本。