I want to reference markdown files from one language to use them in another language of the website (three german versions for germany, austria and switzerland, most files are identitcal).
One solution would be to use symlinks but the problem is that this does not work on windows.
Any idea to tell hugo that he should pull the contents from another location?
While this will not help you TODAY; in the next release we will add Hugo Modules. While that is a big topic, and the directory mount support is mainly targeted at Theme Components, I will make sure that you can configure this in the main project, too. So you can do something ala:
When you consider that this also works with any supported external repo (GitHub) with proper version conrol etc., and for all component types in Hugo (assts, layouts, static, content …) it will be plenty powerful.
And not long away.
@maiki, sorry: This will probably not help since it will not take in account the front matter at compile time.
@ju52: Yes – that would work on windows, indeed. But the build-server is linux. Only the development-machines are windows. So we need a cross-platform solution.
Another option: use WSL on the development machines.