2

How to use 'jekyll-multiple-languages-plugin' on GitHub Pages?

It works locally, but I get the following error when I push my sources to GitHub:

The tag `t` on line 6 in `about.html` is not a recognized Liquid tag.

The code causing the error is:

{% t about.title %}
rocambille
  • 15,398
  • 12
  • 50
  • 68
kirqe
  • 2,431
  • 4
  • 37
  • 63

2 Answers2

8

GitHub Pages allow a limited set of plugins. You can find a list here with the versions for each plugin.

In order to run your jekyll site locally in an environment similar to GitHub Pages, you should serve it with plugins disabled, using:

jekyll serve --safe

There are ways to make Jekyll multilingual without plugins, e.g. this implementation based on this article.

If you really want to use plugins, you will have to generate your web pages locally, and push them into your GitHub repository instead of the Jekyll sources.

rocambille
  • 15,398
  • 12
  • 50
  • 68
2

On Github pages only following gems are allowed : https://pages.github.com/versions/

If you want to use any other gems you can :

Community
  • 1
  • 1
David Jacquel
  • 51,670
  • 6
  • 121
  • 147