Preview and build your site
mainLocal Development
To preview your site locally, run the Hugo server with the -D flag to include posts marked as drafts:
hugo server -DYour site will be available at http://localhost:1313.
Production Build
When ready to deploy, run the standard Hugo build command. The static files will be generated in the public/ directory:
hugo