vwochnik / jekyll-language-plugin

Jekyll 3.0-compatible multi-language plugin for posts, pages and includes
MIT License
115 stars 45 forks source link

Multidomain setup #35

Open martinpesout opened 6 years ago

martinpesout commented 6 years ago

I need to publish every language version on different domain (eg.: example.com, example.nl, example.fr). What is the correct way how to setup this plugin? Or is there any way how to achieve that with this plugin? 😄

Simple example: index.html for en, nl, fr languages.

Output will be placed into /en/index.html, /nl/index.html and /fr/index.html. If I use this solution https://github.com/vwochnik/jekyll-language-plugin/wiki/Language-Name-Liquid-Tag#offer-the-user-a-selection-of-the-available-languages to offer different language versions, it will work only when content will stay in these folders. Imagine situation when I'll map /en/ folder to example.com domain on the server. Other language version will still have URLs going to /nl/, /fr/. How ti fix this situation? Maybe I'm thinking about it in wrong way. But what is the trick how to achieve it? Thanks