Hugo SS

1 minute read

1 - install hugo :

fellow the official doc : https://gohugo.io/getting-started/quick-start/ new posts/my-first-post.mdting-started/installing/ if you are a windows user :

  • downlad the last relase (hugo_XXX_Windows-32bit.zip) from https://github.com/gohugoio/hugo/releases
  • unzip the folder for exemple (C:\hugo).
  • add C:\hugo as variable.
  • check if you did it well , open cmd and launch ‘hugo version’ to get the intalled version of hugo.

2 - create new project (website)

3 - push application to github :

  • add content : hugo new posts/my-first-post.md

  • change directory to blog and init git project : git init

  • Commit the changes git add -A git commit -m “initial commit”

  • Create a blank GitHub repo (don’t create a README) from https://github.com/new

  • git remote add origin https://github.com/mehdyHD/blog

custom dns

custom domain image