Transfer to Hugo
Building a website using Hugo with Netlify.
Services
Name | Purpose |
---|---|
Netlify | Hosting, Continuous deployment from GitHub |
GitHub | Versioning |
Hugo | Static site generation from markdown |
hugo-tranquilpeak-theme | Hugo theme with hierarchical categories |
Cloudinary | Resource management |
Disqus | Comment hosting |
Setup Hugo
Download hugo.exe from Hugo and put it in C:\hugo.
Add the path to hugo.exe to the PATH Environment Variable.
Create a local work folder. Say C:\local.
Generate a new site “blog” in C:\local.
1
2
3cd C:\local hugo new site blog
Download hugo-tranquilpeak-theme and extract files.
Put the extracted files in C:\local\blog\themes.
Register a name of the theme in C:\local\blog\config.toml.
1
2theme = "hugo-tranquilpeak-theme"
Start the Hugo server to check how it looks.
1
2
3cd C:\local\blog hugo server
Accesss to http://localhost:1313