I have multilingual Hugo site configured in a way that it uses two domain names and generates two subdirectories (one per language) in
This is part of my config:
[languages] [languages.pl] lang = "pl" languageCode = "pl" contentDir = "content/pl" baseURL = "https://my-domain.pl" [languages.en] lang = "en" languageCode = "en-en" contentDir = "content/en" baseURL = "https://my-domain.com"
I would like Hugo to manage assets (generate fingerprinted names and so on) but when it comes to assets’ generation the files are placed directly in
I can work around that with Makefile and copy needed subdirectories to language subdirectories (they are then accessed by different servers for different domain names).
However, the current setup makes development annoying because when operating in server mode, Hugo cannot access the resources that are outsite of language directories in both processes. To work around that I’m running hugo server with the argument
--renderToDisk and setting symbolic links within
public/en with targets
Can I somehow improve/fix that?