Install Hugo

# macos
brew install hugo
# windows using scoop
scoop install hugo

New Post

hugo new content/posts/name.md

Hugo will use archetypes/default.md to generate the front matter.

If the post name contains spaces, escape the spaces or use a file name without spaces.

Update Theme

If the theme is managed by git submodule:

git submodule update --init --recursive

Deploy to Middleware

hugo --minify

Then, upload files in the public folder to middleware folder(eg. html folder in nginx)

Deploy to Github Pages

Coming soon…