创建新站点

hugo new site blog

初始化

cd blog
git init

配置hugo-theme-stack主题

# 删除默认配置
rm .\config.toml
rm .\content\

# 启动主题配置
git submodule add https://github.com/CaiJimmy/hugo-theme-stack/ themes/hugo-theme-stack
cp -r .\themes\hugo-theme-stack\exampleSite\content\ .
cp -r .\themes\hugo-theme-stack\assets\ .
cp .\themes\hugo-theme-stack\exampleSite\config.yaml .

启动站点

hugo server -D
最后修改:2023 年 08 月 26 日
如果觉得我的文章对你有用,请随意赞赏