创建新站点
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
评论