I’m going to be using Chocolatey to install Hugo. The install page for chocolatey is here: https://chocolatey.org/install.
- Run
Get-ExecutionPolicy
. Mine returned restricted. I then ranSet-ExecutionPolicy AllSigned
. - Run the following command
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- Run
choco
- Success!
Install Hugo:
- Run
choco install hugo-extended
Install Git:
- Run the .exe installer from https://git-scm.com/download/win
Build a site! (I’m going to be using the Poison theme: https://themes.gohugo.io/themes/poison/)
- Open up a PowerShell terminal
- Navigate to the folder location for your new blog
hugo new site joshuakrizek
cd joshuakrizek
git init
git submodule add https://github.com/lukeorth/poison themes/poison
echo "theme = 'poison'" >> config.toml
(This errored out on me and I opened up the config doc manually, removed the corrupted line and saved the file)hugo server
- Open up http://localhost:1313/ in a browser
- Success!
(Apologies for the Espanol in the screenshots. I’m trying to learn)
References:
https://gohugo.io/getting-started/quick-start/
https://gohugo.io/hosting-and-deployment/hosting-on-github/
https://www.mytechramblings.com/posts/create-a-website-with-hugo-and-gh/