Skip to main content
The benson.vc site is built using Hugo, a fast static site generator. The build process compiles your content and templates into static HTML, CSS, and JavaScript files.

Build command

To build the site, run the following command from the project root:
hugo --minify
This command:
  • Generates static files from your Hugo templates and content
  • Minifies HTML, CSS, and JavaScript for optimal performance
  • Outputs all files to the public/ directory

Build output

After running the build command, you’ll find the complete static site in the public/ directory:
public/
├── index.html
├── css/
├── js/
├── img/
├── CNAME
└── ...
The public/ directory is regenerated on every build. Any manual changes you make to files in this directory will be overwritten.

Configuration

The site uses Hugo’s configuration file located at config/_default/config.toml. Key settings include:
baseURL = "https://benson.vc/"
defaultContentLanguage = "en"
enableRobotsTXT = true
theme = "congo"
The baseURL setting is critical for deployment - it ensures all links and assets use the correct domain.

Local development

For local development with live reload, use:
hugo server
This starts a development server (typically at http://localhost:1313) and automatically rebuilds when you make changes.

Build verification

After building, verify the output:
1

Check the public directory

Ensure the public/ directory exists and contains your site files.
2

Verify the CNAME file

Confirm that public/CNAME exists and contains your custom domain.
3

Test locally

Open public/index.html in a browser to verify the build looks correct.

Next steps

Once you’ve successfully built the site, you’re ready to deploy it to GitHub Pages. See Deploying to GitHub Pages for detailed instructions.

Build docs developers (and LLMs) love