I had removed some functionality from my theme before making it a public repo.
So now my site content and the theme are in different git repos. The theme is a public repo and the site is a private one. I use the theme using git submodule. So people who use my theme do not get that feature (basically a partial file and a small change in single.html with some personal info).
I want to keep the 2 files specific to my site in a folder in my site repo and copy it into the theme folder during the hugo build process.
How can that be done today? I cannot “fork” my theme as git doesn’t allow forking one’s own repo.
To override a theme’s templates you need to include a /layouts/ directory under the root of your project and create the necessary templates with the changes.
Thanks, branching is not an option for me as I wanted to keep some private files.
Another repo ( basically two versions of the same theme) would be a hassle.