Hi,
I’m trying to change the theme of a Hugo site. With the new theme (theme name: Hextra), building the website fails with lots of (false) errors. With the original theme (theme name: Relearn), the site builds correctly.
With theme “Hextra”
git clone https://gitlab.com/asqatasun/asqatasun-documentation-v6.git
cd asqatasun-documentation-v6
git checkout 7-try-theme-hextra
cd Asqatasun-v6-documentation
hugo server --logLevel debug --disableFastRender -p 1313 --noHTTPCache --verbose
this produces:
Watching for changes in /home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/{archetypes,assets,content,data,i18n,layouts,static}
Watching for config changes in /home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/config/_default, /home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/config/development, /home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/go.mod
Start building sites …
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended linux/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=gohugoio
INFO copy static: syncing static files to /
INFO build: running step process duration 14.304863ms
INFO build: running step assemble duration 41.544622ms
ERROR [en] REF_NOT_FOUND: Ref "./Rule-1-10-1": "/home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/content/_index.md:6:7": page not found
ERROR [en] REF_NOT_FOUND: Ref "./Rule-1-10-2": "/home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/content/_index.md:9:37": page not found
(...)
ERROR [en] REF_NOT_FOUND: Ref "./13.Consultation": "/home/mfaure/Documents/Asqatasun/Dossier-0Permanent/0Sources/asqatasun-documentation-v6/Asqatasun-v6-documentation/content/_index.md:26:4": page not found
INFO build: running step render duration 15.891465108s
INFO build: running step postProcess duration 13.337µs
Built in 15947 ms
Error: error building site: logged 604 error(s)
With the original theme (Relearn)
git clone https://gitlab.com/asqatasun/asqatasun-documentation-v6.git
cd asqatasun-documentation-v6
cd Asqatasun-v6-documentation
hugo server --logLevel debug --disableFastRender -p 1313 --noHTTPCache --verbose
Site builds without error.
Details
- Go v1.18.1
- Hugo v0.119
- Theme Hextra v0.6.3 used as a go module (not a git submodule)
Question
I’ve looked over the options of hugo
command and the Hugo documentation, but couldn’t find help. So how can I troubleshoot this issue ?