jekyll-multiple-languages-plugin icon indicating copy to clipboard operation
jekyll-multiple-languages-plugin copied to clipboard

compatibility with jekyll-assets

Open alexandre1985 opened this issue 6 years ago • 2 comments

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).

alexandre1985 avatar Aug 18 '19 18:08 alexandre1985

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/.

steven1046 avatar Jul 12 '21 17:07 steven1046

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

  • assets into an _assets/ directory
  • use the git-master version of Jekyll-assets (currently 4.0.0alpha)
  • exclude_from_localizations: ["assets"]

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

h4llow3En avatar Jul 22 '21 20:07 h4llow3En