Skip to content

Static Pages using Hugo and Github (Github Pages)

Prerequisite

  • Programming Language - Python
  • Static Site Generator Framework - Hugo

Hugo

Download and install hugo using the following link and your OS: Hugo
Once Hugo is installed, browse your preferred theme by visiting: Theme Catalog
Download the theme and follow the given instructions provided in theme to modify the website according to you.
For demonstration, I am using Hugo Profile

Deployment

create a github repository with a name: .github.io
Push your content to this repository.
Go to Settings/Pages of this repository and change the settings under Build and Deployment.
Change the Source to Deploy from a branch and select root as a branch.
Once this is done, deployment will trigger and can be checked under Actions tab of repository.
You will get the link where website is deployed.