Hello,
I have been using Hugo for a while now, with a hobbeled theme installed at the root of my Hugo project.
I am now in the process of a refresh using a 3rd-party theme (hugo-narrow). I initially went down the route of using git submodules, but now want to use hugo mod.
Having no experience with hugo mod I suspect I am not getting the results that I think should occur. The themeβs documentation describes the steps one needs to take. When I execute hugo mod get github.com/tom2almighty/hugo-narrow I expected the theme to be pulled into my project. But that does not occur. The only change is a new go.sum file is created:
tree .
.
βββ archetypes
β βββ default.md
βββ assets
βββ content
βββ data
βββ go.mod
βββ go.sum
βββ hugo.yaml
βββ i18n
βββ layouts
βββ static
βββ themes
My assumption is that hugo mod get should pull the repository into my project.
- Is my assumption correct?
- What am I missing with using
hugo mod? - Should I manually run
git clone?
My environment:
- MacOS 15.7.3 (Apple Silicon)
- go version go1.25.5 darwin/arm64
- hugo v0.154.5+extended+withdeploy darwin/arm64 BuildDate=2026-01-11T20:53:23Z VendorInfo=Homebrew
- git version 2.52.0
Thanks!