Hugo Commands
Planted March 21, 2024
I use Hugo for this website. That doesn’t mean I actually know all the commands. These are the basic commands that have been serving me well.
hugo version
Create new website package/folder
hugo new site newwebsite
cd newwebsite
Start server locally
hugo server
hugo server -D (for drafts)
Add new content
hugo new content posts/my-first-post.md
Publish the site
hugo
After this, the file will be in the public folder
To clean the public folder for new build: Delete the public folder and rebuild it.