According to the Hugo Layouts Lookup Order, it’s easy to override Hugo and theme’s layouts and partials. It’s useful for users who want to custom some stuff of particular layouts or partials.


Just create a layout or partial file with the same filename that you want to override under site root.

This is how our Hooks work.

For example, we can override the homepage parital layouts/index.html via creating our own under site root.

1$ echo "MY CUSTOM HOMEPAGE" > layouts/index.html