kurtsson / jekyll-multiple-languages-plugin

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

I don't get Jekyll Multiple Languages Plugin to work at Github Pages Server #163

Open sslHello opened 4 years ago

sslHello commented 4 years ago

Thank you for your nice plugin.

I am sorry, but I do have the same issue as 'The blog posts are not built in GitHub Pages Server (#120)'. Locally it works all OK (I've installed it according '3.1 Using the gem'; Even using the safe option in 'bundle exec jekyll serve --safe' works locally.

I am sorry, on the Github Pages Server does not work here neither installing it according

Any help is kindly appreciated Cheers Torsten

GilmarCorreia commented 3 years ago

I'm facing the same problem. Have you solved this issue?

sslHello commented 3 years ago

Hi Gilmar, yes. I've found a work-around writing an include replacing the plugin: https://github.com/OWASP/www-project-top-ten/blob/master/_includes/i18n.html

I've used it e.g. in some includes of this page (defining 'lang: en' in the header): https://raw.githubusercontent.com/OWASP/www-project-top-ten/master/OWASP_Top_Ten_2017/Top_10-2017_A1-Injection.md e.g. in include 'https://github.com/OWASP/www-project-top-ten/blob/master/_includes/t10_subsection.html': {%- if {{include.token}} -%} {%- include i18n.html token=include.token -%}

I hope, this helps you, too. Cheers Torsten

GilmarCorreia commented 3 years ago

Thank you, I will try. I've found another solution for the minimal-mistakes theme using the lang: en

intlr commented 3 years ago

fyi there is an ongoing discussion to add multi-language support to Github Pages and I'm trying to get an overview of what it would need to whitelist the jekyll-multiple-languages-plugin there

https://github.com/github/pages-gem/issues/401