Basic build and deploy

  • Create netlify.toml file as follows
 1[build]
 2  publish = "public"
 3  command = "hugo"
 4
 5[context.production.environment]
 6  HUGO_VERSION ="0.92.1"
 7  HUGO_ENV = "production"
 8  HUGO_ENABLEGITINFO = "true"
 9
10[context.branch-deploy.environment]
11  HUGO_VERSION ="0.92.1"
12
13[context.deploy-preview.environment]
14  HUGO_VERSION ="0.92.1"
  • Change URL of Hugo Bootstrap Theme repo in .gitmodules from git@ to https
1- url = git@github.com:sagarbehere/hugo-theme-bootstrap.git
2+ url = https://github.com/sagarbehere/hugo-theme-bootstrap.git
  • Create an account with Netlify if one does not exist and connect it to the appropriate Github repository

Custom domain

  • Add sagar.se as a custom domain in Netlify
  • Copy over all the MX records for sagar.se from loopia to Netlify DNS
  • Change NS records at loopia to point to the four records shown by Netlify
  • Wait. Patiently!

In a couple of hours, you can test with e.g.

1nslookup sagar.se 8.8.8.8