Hello everyone,
I’m facing the following issue and would appreciate your help!
Setup
/home/user/modules/config-global/
└── config/
└── production/
├── hugo.yaml
└── static/
└── test.txt
Inside hugo.yaml
of the module:
disableKinds:
- section
- taxonomy
- term
/home/user/site-playground/
└── config/
└── _default/
├── hugo.yaml
└── production/
Inside _default/hugo.yaml
of site-playground
:
baseURL: https://xxxx.com
languageCode: de-DE
module:
imports:
- path: "github.com/XXX/XXX-config-global"
The test.txt
file from the module is correctly included in the static/
folder.
Problem
I am a Hugo beginner, and no matter what I try, I cannot get hugo.yaml
from a module on GitHub into my project.
I have tried:
- Using
production/
or not - Using
mount
- Using
configDir
However, nothing works.
Goal
I want to manage some static configuration settings across multiple sites and thought that modules would be the best approach.
However, some sources say this is not possible, while others suggest that it should work.
I haven’t found any official documentation or best practices on this.
What is the recommended way to handle this? Is there an official solution?
Thanks a lot for your help!