Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/gurusabarish/hugo-profile/llms.txt

Use this file to discover all available pages before exploring further.

Netlify is the easiest way to deploy Hugo Profile — you get automatic builds, HTTPS, and a global CDN for free. Every push to your connected repository triggers a fresh build, so your live site stays in sync with your content without any manual steps.

Deployment paths

The quickest route to a live site is to start directly from the Hugo Profile repository using GitHub’s template feature. Netlify will detect the included netlify.toml automatically — no manual build configuration required.
1

Create your repository

Open https://github.com/gurusabarish/hugo-profile and click Use this template, then Create a new repository. Give your repository a name and choose a visibility setting.
2

Add the site to Netlify

Go to https://app.netlify.com, click Add new site, then select Import an existing project.
3

Connect your GitHub repository

Authorize Netlify to access GitHub if prompted, then select the repository you just created.
4

Review build settings

Netlify automatically detects the netlify.toml in the repository root and pre-fills the build command and publish directory. No changes are needed.
5

Deploy

Click Deploy site. Netlify builds the site and gives you a live URL within a minute or two.
Any changes you push to files inside the exampleSite/ folder will automatically trigger a redeployment on Netlify.

netlify.toml reference

The repository ships with a netlify.toml that drives automated deployments for the template flow. Here is the complete file:
[build]
  publish = "exampleSite/public"
  command = 'cd exampleSite && echo -e "\ngoogleAnalytics: $GOOGLE_ANALYTICS \ndisqusShortname: $DISQUS_SHORTNAME \n" >> config.yaml && hugo --gc --minify --themesDir ../..'

[context.production.environment]
  HUGO_VERSION = "0.143.0"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"
  HUGO_THEME = "repo"

[context.split1]
  command = "cd exampleSite && hugo --gc --minify --enableGitInfo --themesDir ../.."

[context.split1.environment]
  HUGO_VERSION = "0.143.0"
  HUGO_ENV = "production"
  HUGO_THEME = "repo"

[context.deploy-preview]
  command = "cd exampleSite && hugo --gc --minify --buildFuture --themesDir ../.. -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
  HUGO_VERSION = "0.143.0"
  HUGO_THEME = "repo"

[context.branch-deploy]
  command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
  HUGO_VERSION = "0.143.0"

[context.next.environment]
  HUGO_ENABLEGITINFO = "true"
If you scaffolded your own site with the Quick Start guide, your build command is simply hugo and your publish directory is public — the exampleSite/ paths in the default netlify.toml only apply to the template repository layout.

Custom domain

You can point your own domain to your Netlify site at any time:
  1. In the Netlify dashboard, open your site and go to Domain settings > Add a domain.
  2. Enter your domain name and follow the DNS instructions Netlify provides.
  3. Netlify automatically provisions a TLS certificate via Let’s Encrypt — HTTPS is enabled without any extra steps.
Before going live on a custom domain, update baseURL in your hugo.yaml to match the production domain exactly. Mismatched baseURL values cause broken asset paths and incorrect canonical links.
baseURL: "https://www.yourdomain.com"

Further reading

Build docs developers (and LLMs) love