Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 682 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 682 Bytes

Blog

About

Xan's Blog Powered by Hugo & PaperMod

Install

sudo apt install hugo

New Post

hugo new posts/title.md

Serve

hugo serve -D

Build

# 生成 public 文件夹,可部署到云服务器或托管到 Github 上
# hugo # 只会往 public 文件夹里添加内容,但是不会删除外部已经不存在而 public 里面还存在的文件
hugo -F --cleanDestinationDir # 每次生成的public都是全新的,会覆盖原来的 

Deploy

cd public
git add .
git commit -m "update"
git push