How to use Hugo to Build a Blog and Deploy it to Github Page
1. Install Hugo
- Windows:
First install the choco package manager, run cmd under administrator rights, and execute the following command:
|
|
Then use choco to install hugo:
choco install hugo -confirm
- MacOs:
Install using brew command:
brew install hugo
- Linux:
Install using snap command:
snap install hugo
Check whether the installation is successful:
Enter: hugo version
. If the version information appears, the installation is successful.