This article is here to document the process of building a blog using Hugo and publishing it on GitHub Pages. GitHub provides a free personal website service called GitHub Pages. You can upload your web content to a designated format repository to make it live.
Preparations
- GitHub account
- Install Git
- Your target website
Setup
- Click on “repository,” then “New.”
- In the “repository name” field, enter “{your account name}.github.io.”
- Click “create repository.”
Upload
Next, we’ll push the local website to GitHub. If you don’t have a website and just want to test, you can simply create an index.html for testing.
|
|
View
If everything is fine, you can visit https://{your account}.github.io to see the web page you just pushed!
Using Hugo: Building the Site and Uploading
Continuing from the previous article, “Creating the First Post with Hugo”, we can use GitHub Pages to publish our results. Remember to change the baseURL in your config.
|
|