【hugo之路 1】 hugo + hugo-theme-stack 部署

【hugo之路 1】 hugo + hugo-theme-stack 部署

literature
2023-08-26 / 0 评论 / 243 阅读 / 正在检测是否收录...

创建新站点

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
0

评论

博主关闭了当前页面的评论