Creating a new module repository – step by step
Need: There is no consolidated, step-by-step guide for creating a new Hugo module repository from scratch and connecting it to the site. The process requires coordination across multiple repositories and configuration files.
Planned content
The guide will cover the full flow from empty repo to published content:
- Create repo in the correct GitHub org
hugo mod init github.com/<org>/<repo>- Create content structure (
content/_index.nb.md,_index.en.md) - Register the module in
samt-bu-docs/hugo.toml([[module.imports]]) - Run
hugo mod get @latestand commitgo.mod/go.sum - Add to
HUGO_MODULE_REPLACEMENTSandinject-lastmod.pyin CI - Create cross-repo trigger workflow in the module repo
- Create CMS portal (nb + en) in
samt-bu-docs - Add new branch in
edit-switcher.html
Not started.