Hello I am using hugo with the docsy theme.
I would like to use modules to include both the theme and the content, published in other repository.
Using modules seems to be the recommended approach but I encountered the problem of not being able to specify, in the hugo config.yaml, a version for the theme module (docsy) and always get the latest version of the content modules.
I tried the following:
specify the module version in go.mod and never run hugo mod get => it honors the version for the theme module, but never updates the content modules
always run hugo mod get => always updates all modules, including the theme (unwanted changes)
$ hugo help mod get
Resolves dependencies in your current Hugo Project.
Some examples:
Install the latest version possible for a given module:
hugo mod get github.com/gohugoio/testshortcodes
Install a specific version:
hugo mod get github.com/gohugoio/testshortcodes@v0.3.0
Install the latest versions of all module dependencies:
hugo mod get -u
hugo mod get -u ./... (recursive)