@Obsolesce said in Building A Hugo Site From a Theme:
Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.
sudo apt update
sudo apt upgrade
sudo apt install hugo
hugo version to verify installation
hugo new site testsite.com
- Extracted it into the
- Renamed folder in themes directory to
- Copied the
exampleSite folder to site root, replacing/merging/overwriting everything when asked.
hugo serve -D from the
Result: Blank white page.
UPDATE (added steps 7,8,9)
Okay I missed your step 5, and did that, after I found the directory you were referring to:
- Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.
Installed latest version via built-in software install GUI
Retried my steps starting at step 4.
NOW I get a working site.
I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.