1创建站点:hugo new site "+文件夹名"
2下载博客主题:打开https://themes.gohugo.io/,复制粘贴命令即可
3新建文章:hugo new "+文件名.md"
4启动hugo:hugo serve --主题名 --buildDrafts
5解决fatal: Not a git repository (or any of the parent directories): .git
在命令行敲入git init回车之后,再重新执行添加文件的命令即可
1创建站点:hugo new site "+文件夹名"
2下载博客主题:打开https://themes.gohugo.io/,复制粘贴命令即可
3新建文章:hugo new "+文件名.md"
4启动hugo:hugo serve --主题名 --buildDrafts
5解决fatal: Not a git repository (or any of the parent directories): .git
在命令行敲入git init回车之后,再重新执行添加文件的命令即可