Having a demo/test site embedded in a Hugo module can cause large bandwidth consumption during its normal use as a module (due to pulling the demo site as part of each site build). So, I have split the site and module into separate git repos but keep a Netlify deploy as part of the CI process.
I have posted this to the Netlify support forums:
The actual article is here:
and the table of contents (which I hope is nice guide for those who don’t need to read the blow-by-blow).
- Preface
- Moving the large files out of the module
- Create a new Hugo module repo with the site
- Use a subdirectory of the module as a ‘site’
- Create a build script for use with Netlify
- Deploy on Netlify
- Set your GitHub branch protection rules to require successful deploy
- Remember to
git rebase
notgit merge
orgit pull
any existing branches - Conclusion
@Tom_Durand @vassap This write up took longer than expected, so apologies for my delay in getting back to you.