HUGO

Shared partials in a multi site multi lingual setup

Hey there,

for my job I have to constantly build new sites, and to make it easier on myself I figured why not create a Mono Repo that contains a single Hugo install and webpack etc.

I imagine this repo to contain multiple directories, each for a separate website, that can then be build and deployed separately.

Websites should have their own layouts, data, own languages and own content.

But if I really want to make it a smooth experience, some files should be shared. I’m thinking partials to retrieve site url, image partials etc etc. (all partials that share commonly used functionality and have little to no theme html in them).

Is it possible to have a third, custom path where Hugo looks for partials as described above? @bep and anyone else :slight_smile:

Have a look at Modules: Hugo Modules | Hugo

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.