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/

  1. Powershell

    • winget install Hugo.Hugo.Extended
    • winget install --id Git.Git -e --source winget
  2. Restart Powershell

  3. Navigate to wherever the files will be located

  4. hugo new site [name of site] –format yaml

  5. cd [name of site]

  6. git init

  7. Install theme in the [name of sites]

  8. Edit [name of site]\hugo.yaml

    • change baseURL to your webaddress
    • add theme: [“PaperMod”]
  9. 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)