Hugo+Github个人笔记部署简易教程
文章目录
hugo笔记部署
-
sudo apt install hugo -y
-
hugo new site dcqwiki
-
cd dcqwiki
-
git git submodule add https://github.com/olOwOlo/hugo-theme-even/tree/v4.0.0https://github.com/olOwOlo/hugo-theme-even themes/even
-
hugo server
-
本地访问localhost:1313
-
编译:hugo
-
github创建仓库
-
名字和github名字一样
-
勾选publi和Readme
-
cd public
-
git init -b main
-
git remote add origin git@github.com:dev960/dev960.github.io.git
-
git pull –rebase origin main
-
git add .
-
git commit -m “first commit”
-
git push origin main
-
hugo server -t even –buildDrafts
指定模板渲染文章