使用Hugo创建个人博客
Hugo介绍
Huogo的安装
Mac下使用命令brew install hugo安装即可
安装后通过hugo --help查看命令帮助
主题安装
本地预览
hugo server --theme=anatole -D
加上参数—D是生成草稿。
发布
通过以下命令,生成静态网页。
hugo -b https://kevinmeng0509.github.io -t anatole -D
然后进入public目录,把修改内容pull到github中。
git add -A
git commit -m '加入新文章'
git push
评论区