Override a Hugo theme
We’ve all been there. You’re browsing through the Hugo themes and find one that you really like. It meets all your criteria, except for that one small thing. So, what are your options?
Well, thanks to Hugo’s lookup order, you can override any part of a theme that you want. The following is a quick example.
Let’s say you really like theme
foo, but you wish the homepage was different. All you have to do is copy the homepage template:
And paste it under your own
Then you’re free to make any changes you want to the homepage. When Hugo builds your site, your copy of
index.html will be used instead of the theme’s