I am using mainroad theme on my website. I cloned it from the original project and did some adjustments, mainly in colors. Theme hasn’t been updated from the original one for ages.
I was wondering what is your strategy for keeping modified themes up to date? I am thinking on simple recursive diff between the latest original version and mine. Save all my modified changes on the side, copy and update my changes again.
Thanks for your answer. Indeed my theme is mounted as git submodule. Changes I did are partially in theme /layouts/ folder. If I understand you correctly in the root Hugo folder I should create /layouts/ folder and put all modified theme files? Shall I create the same folder structure as in theme?
For example I did change /themefolder/assets/css/style.css. Does this mean I have to copy it into /hugomainfolder/layouts/assets/css/style.css?
Similar /themefolder/layouts/partials/widgets/search.html into /hugomainfolder/layouts//themefolder/layouts/partials/widgets/search.html?
Yes. To override a theme template you need to replicate its PATH under project-root/layouts
Regarding the theme assets folder I guess that changes need to reside under your project’s assetsDir, by default this folder should be project-root/assets/ while again replicating the PATH under the original theme folder.