Hello, I’m new to Hugo (and coding in general), so forgive me if I make some silly mistakes.
I’m trying to build a new personal site using Hugo and the Papermod theme. I followed the Hugo docs as closely as possible. I installed the Papermod theme using the git submodules (as recommended on the docs).
The theme works when I run the server locally, but it fails when I try to deploy to Github pages. Github Actions spits out:
Run hugo \
Total in 1 ms
Error: failed to load modules: module "Papermod" not found in "/home/runner/work/bryantburkhart/bryantburkhart/themes/Papermod"; either add it as a Hugo Module or store it in "/home/runner/work/bryantburkhart/bryantburkhart/themes".: module does not exist
I’ve been trying to solve this for days. I’ve wiped and reinstalled the theme several times. I’ve added the hugo lockfile to my .gitignore file. I tried to follow everything listed in this other thread I found: here
My assumption is that Hugo wants me to use Hugo modules… are modules the only way to install themes going forward?
All files can be found here:
Hugo env:
hugo v0.140.2+extended+withdeploy darwin/arm64 BuildDate=2024-12-30T15:01:53Z VendorInfo=brew
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.23.4"
github.com/sass/libsass="3.6.6"
github.com/webmproject/libwebp="v1.3.2"
github.com/sass/dart-sass/protocol="3.1.0"
github.com/sass/dart-sass/compiler="1.83.3"
github.com/sass/dart-sass/implementation="1.83.3"
Thanks!