I’m trying to launch the exampleSite (so that I can construct my site building from that code) and I’m getting this error: Error: module "coHub" not found; either add it as a Hugo Module or store it in "/Users/jamesades/jva/themes/coHub/exampleSite/themes"
I return to the root of my project (jva) and run the code hugo mod init but I get Error: failed to init modules: binary with name "go" not found
Thanks, so I downloaded go, but I’m still having trouble initializing a Hugo module…if I’m using the code hugo mod init github.com/<your_user>/<your_project>, is <your_user> the user name of git and then <your_project> the root of the project (jva). I’ve tried that and I’ve also tried the username of my computer, neither seems to work.
Okay, so this is my root project (is that what you mean by repository?). I’ve only used git to try to connect git to Netlify to ultimately host my webpage. But yeah, for now, just trying to view the example website (exampleSite), so that I can then alter the code to create my own website accordingly (with the coHub theme: GitHub - StaticMania/hugo-cohub).
Second, I still have no idea why you are referring to Go modules, unless it is in your project (not the theme)—and you have not provided access to your project. https://github.com/Jades1/netlify is not a project; I’m not sure what it is.
Third, this works fine:
hugo new site foo
git clone --recurse-submodules https://github.com/StaticMania/hugo-cohub themes/cohub
echo "theme = 'cohub'" >> config.toml
hugo server --theme ../..