在安裝主題前,請確保你滿足先決條件。
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. |
我們建議使用這些工具的最新版本。
評論