This theme provides several kinds of layouts, such as
posts
and
docs
.
Our documentation uses the
docs
layout. If you're looking for an example that using
posts
layout,
please take a look at the page
Markdown Syntax .
在安装主题前,请确保你满足先决条件。
Configuration HBS 要求设置以下配置。
config.toml
1 [ build ]
2 writeStats = true
3 [ taxonomies ]
4 author = 'authors'
5 category = 'categories'
6 series = 'series'
7 tag = 'tags'
toml
config.yaml
1 build :
2 writeStats : true
3 taxonomies :
4 author : authors
5 category : categories
6 series : series
7 tag : tags
yaml
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 }
json
构建工具 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 aboverequired only when installed as a Hugo Module.
我们建议使用这些工具的最新版本。
评论