jekyll-multiple-languages-plugin
jekyll-multiple-languages-plugin copied to clipboard
I don't get Jekyll Multiple Languages Plugin to work at Github Pages Server
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
- '3.3. As a Git Submodule':
"The submodule registered for
./_plugins/multiple-languagescould not be cloned. Make sure it's using https:// and that it's a public repo. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#invalid-submodule." Replacing 'git:' by 'https:' did not help. - nor '3.1 3.2. Manually':
"The tag
translateon line 21 in_includes/myinclude.htmlis not a recognized Liquid tag. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#unknown-tag-error."
Any help is kindly appreciated Cheers Torsten
I'm facing the same problem. Have you solved this issue?
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
- config-file: https://github.com/OWASP/www-project-top-ten/blob/master/_config.yml
- yaml-file: https://github.com/OWASP/www-project-top-ten/tree/master/_data/i18n
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
Thank you, I will try. I've found another solution for the minimal-mistakes theme using the lang: en
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