Install Hugo
Best to install the latest hugo_extended version, or you may easily run into problems.
| |
Create a new Hugo site
| |
Initialize git repository
| |
Add a theme
Choose a theme from Hugo Themes and follow the instructions to add it to your site. For example, to add the Ananke theme:
| |
Create a new post
| |
New Github repository
Create a new repository on Github, for example: YOUR_SITE_NAME.
Then continue to add the remote repository in the local YOUR_SITE_NAME directory.
| |
Create Github Actions workflow
Click Settings -> Pages -> Build and deployment -> Source -> Select GitHub Actions -> Select Hugo
Then revise the HUGO_VERSION: to the latest version, for example HUGO_VERSION: 0.154.2
Finally, click commit these changes.
Visit your site
After CI/CD is done, visit https://YOUR_USERNAME.github.io/YOUR_SITE_NAME/ to see your new Hugo site!