kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
922 stars 201 forks source link

compatibility with jekyll-assets #146

Open alexandre1985 opened 4 years ago

alexandre1985 commented 4 years ago

why do you change site.baseurl? Can site.baseurl be restored to its original state (not bound to language directory) after jekyll-multiple-languages-plugin plugin completes its task? (What I want is for compatibility with other plugins that use site.baseurl variable, such as the plugin jekyll-assets) I'm having problems implementing cache bust (with jekyll-assets) on my multiple language website (that has jekyll-multiple-languages-plugin).

steven1046 commented 3 years ago

I have the same question, does it work with jekyll-assets? With Jekyll-assets, i put the css/js in /assets/cs and /assets/js/, and then the language plugin moves those to baseroot of the project if exclude_from_localizations is set. Then when trying to load in a javascript file using the syntax {% js file_name %}, it can't find it because it was moved out of the language directory such as /i18n/en/assets/js/.

h4llow3En commented 3 years ago

@steven1046 I have a working example of jekyll-assets:

assets are now referenced as {% asset file_name.<css|js|img|...> %}