Q

How to Build a Blog with Hugo and Github

2024-07-26


Why I Use Hugo

References I Used During This Process

Note: Among these resources, the Hugo Official Documentation is particularly recommended because is up-to-date, pretty detailed and user-friendly, while other online tutorials may be outdated. By simply following the Quick Start, you can set up the blog framework. Afterwards, you can modify theme files according to your needs, focusing initially on the config.toml and content folders, while using hugo server to preview the changes locally.

File Structure

For more information, you can also refer to Hugo document - Directory structure

content and public

themes

GitHub Repository

Create Repositories

In these three repositories, the first repository is the main repository for the second and third repositories. It is recommended to use submodules to manage the three repositories. For more information on submodules, you can refer to my other blog post. Alternatively, you can manage them directly by cloning the second and third repositories into the first repository.

Using GitHub Actions for Automated Deployment