I’ve been searching for a while but I could not find any resources to drive me toward my goal with Hugo. Let me explain my needs.
I need to build a generic landing page in which I’ll have three different builds for three different customers. The landing page is almost identical to each one, the differences are some background images and some customer specific texts in the page.
I think that it could be done by using some kind of dynamic parameters within the build process, maybe selecting a different config on build time, but I could not find a way to do that. I would like to know if this can be done with Hugo or if you have any resources I could use it to accomplish it.
Any reason why you would not want to keep distinctly separate file system locations for each site for the sake of simplicity? Then run hugo and other deployment commands in a batch process? Maybe I am missing the advantages of “dynamic config” in this case.
If the website is in 3 places, then when you want to make a change, you have to make 3 changes. If using multiple config files, you only have to make the change in 1 file.
Would making a change and then having to copy it to 2 other places not be considered added complexity?
If I am understanding you correctly, you would know this by the name of the config file. For example:
customer-1.toml
customer-2.toml
customer-3.toml
Also, one could have a base config file with common options, e.g. baseconfig.toml, then the customer config files would only contain customer-specific options. Then you could do something like this:
I realize each site would have a separate config file.
But in a single location multi config setup there would be different images and customer specific texts intermingled with the non-customer specific files. This would have to be managed such that you knew which files belonged to which site. Which seems more complicated than having separate sites all together.
I will read some more and try to understand what benefits a multi config setup brings.