Launch a local Hugo server including live reload by running (append
-F for including future posts):
hugo server -D --debug
You can manually create content files (for example as
content/<CATEGORY>/<FILE>.<FORMAT>) and provide metadata in them, however you can use the
new command to do a few things for you (like add title and date):
hugo new posts/my-first-post.md
Edit the newly created file under
content/posts, update the header of the post to say
you can view the live changes in the browser http://localhost:1313/
Push updates to
main branch will trigger a github action to deploy the updates automatically.
see .github/workflows/gh-pages.yaml for details.