步骤如下
运行hugo version命令
[注] 检查你只否安装成功;
运行hugo new site quickstart命令
[注] 其中,quickstart改成自己的仓库名—— 小写的用户名.github.io-creator
-
运行cd quickstart命令[注] 进入上一步创建的目录
-
接下来只需要机械地直接执行这三句命令:
git init git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke echo 'theme = "ananke"' >> config.toml
运行hugo new posts/my-first-post.md命令
[注] 其中,my-first-post改成自己的博客主题
运行hugo server -D命令
[注] 点击所给链接 https://localhost.1313 就可以本地预览自己的博客界面喽
[注] 发布时,记得将改成
状态