FixIt Bundle
👉 简体中文说明 | English README
🌲 将 FixIt 核心主题和所有 hugo-fixit 组件捆绑成一个单一组件。
安装组件
首先确保你的项目本身是一个 Hugo 模块。
然后在你的 hugo.toml 配置文件中添加这个主题组件:
1
2
3
4
| [module]
[[module.imports]]
path = "github.com/hugo-fixit/fixit-bundle"
|
在 Hugo 首次启动时,它将下载所需的文件。
要更新到模块的最新版本,请运行:
1
2
| hugo mod get -u
hugo mod tidy
|
使用方法
在你的 hugo.toml 中添加以下内容:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| [params]
# ...
[outputs]
_merge = "shallow"
[taxonomies]
_merge = "shallow"
[markup]
_merge = "shallow"
[module]
[[module.imports]]
path = "github.com/hugo-fixit/fixit-bundle"
|
你可以使用所有包含的主题组件的配置和功能。
组件列表