How and why - Hugo?

Parameters for local dev environment

hugo server -D
# Running localhost server - localhost:1313
# -D is responsible for displaying Draft articles on the localhost 
# even if they are in the `draft: true` state.
hugo 
# Compiling website into /public

Easiest way of deploying only the /public folder with git

  1. Delete public dir and create it again
  2. Clone the remote repo with “.” add the end to unpack in the new public folder
git clone git@github.com:name/name.git .
  1. Run hugo and commit new changes
  2. Push the commit and the repo is updated