新建主题
2026年8月9日 2026年8月9日
命令
新建主题,路径为[blog-tech/themes/<主题名称>]
BASH
1hugo new theme <主题名称>
使用主题
hugo.toml
toml
1theme = "<主题名称>"
清理工作
删除文件夹[themes/<主题名称>/content]。
主题默认读取[Content/posts]分区下博文。