Source: https://gohugo.io/getting-started/quick-start/
Source: https://gohugo.io/installation/windows/
Source: https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/
-
Powershell
winget install Hugo.Hugo.Extendedwinget install --id Git.Git -e --source winget
-
Restart Powershell
-
Navigate to wherever the files will be located
-
hugo new site [name of site] –format yaml
-
cd [name of site]
-
git init
-
Install theme in the [name of sites]
-
Edit [name of site]\hugo.yaml
- change baseURL to your webaddress
- add theme: [“PaperMod”]
-
hugo new content /content/posts/sample.md Creates a sample post. So you can select it when configuring Front Matter
Set name of site by editing hugo.toml file
For cloudflare pages set the environment variable under Settings > Variables and Secrets and create plaintext variable HUGO_VERSION | version_number(e.g. 0.143)