Introduction
This article shows how I built a personal site on GitHub Pages using Hugo and GitHub Actions.
Prerequisites
- GitHub account
- SSH key pair for pushing code
Basic familiarity with Git is assumed.
Choose a Theme
Hugo’s community offers many themes. I picked Stack by Jimmy Cai.
Initialize the Project
|
|
Add the theme as a submodule and copy example content if needed.
Writing Posts
Create new articles with:
|
|
Write markdown content under content/
and store images in assets/
or static/
.
Automating Deployment
Set up a GitHub Actions workflow that builds the site and pushes the public/
folder to gh-pages
:
|
|
Conclusion
With Hugo and GitHub Actions you can quickly create and deploy a static site for notes or blogging.