目录

搭建Hugo站使用netlify动部署网站

https://raw.githubusercontent.com/gohugoio/gohugoioTheme/master/static/images/hugo-logo-wide.svg?sanitize=true

新见一个网站目录

1
hugo new site blog

安装主题

1
git clone https://github.com/dillonzq/LoveIt.git themes/LoveIt

初始化子模块

1
2
3
4

git init
git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt

忽略public

1
/public

复制编辑主题

1
cp themes/LoveIt/exampleSite/config.toml

创建你的第一篇文章

1
2
hugo new posts/first_post.md

本地预览网站

1
hugo serve

新建GitHub库

上传GitHub并

1
2
3
git add -A
git commit -m "网站搭建"
git push -u origin master