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

Liquid syntax error (line 19): Unknown tag 't' in _includes/post.html, included in index.html in Jekyll-3.1.2

Open johnliao52 opened this issue 8 years ago • 5 comments

bundle exec jekyll serve --trace Configuration file: /home/john/blog/3rd/research/jekyll-multiple-languages-plugin/example/_config.yml Source: /home/john/blog/3rd/research/jekyll-multiple-languages-plugin/example Destination: /home/john/blog/3rd/research/jekyll-multiple-languages-plugin/example/_site Incremental build: disabled. Enable with --incremental Generating... Liquid Exception: Liquid syntax error (line 19): Unknown tag 't' in _includes/post.html, included in index.html /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/tags/include.rb:132:in rescue in render': Liquid syntax error (line 19): Unknown tag 't' (Jekyll::Tags::IncludeTagError) from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/tags/include.rb:124:inrender' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in render_token' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:inblock in render_token_with_profiling' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in profile_token_render' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:inrender_token_with_profiling' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in block in render_all' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:ineach' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in render_all' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/block.rb:108:inrender' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/template.rb:210:in block in render' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/template.rb:262:inwith_profiling' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/template.rb:209:in render' from /var/lib/gems/2.1.0/gems/liquid-3.0.6/lib/liquid/template.rb:222:inrender!' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/liquid_renderer/file.rb:28:in block (2 levels) in render!' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/liquid_renderer/file.rb:36:inmeasure_bytes' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/liquid_renderer/file.rb:27:in block in render!' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/liquid_renderer/file.rb:43:inmeasure_time' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/liquid_renderer/file.rb:26:in render!' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/renderer.rb:106:inrender_liquid' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/renderer.rb:61:in run' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/site.rb:179:inblock in render' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/site.rb:177:in each' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/site.rb:177:inrender' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/site.rb:59:in process' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/command.rb:26:inprocess_site' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/commands/build.rb:60:in build' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/commands/build.rb:33:inprocess' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/lib/jekyll/commands/serve.rb:34:in block (2 levels) in init_with_program' from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:incall' from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in block in execute' from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:ineach' from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in execute' from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:ingo' from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in program' from /var/lib/gems/2.1.0/gems/jekyll-3.1.2/bin/jekyll:13:in<top (required)>' from /usr/local/bin/jekyll:23:in load' from /usr/local/bin/jekyll:23:in

' john@johnlubuntu:~/blog/3rd/research/jekyll-multiple-languages-plugin/example$

johnliao52 avatar Apr 27 '16 09:04 johnliao52

The current version is not compatible with Jekyll 3.1.2.

Version 1.4 of the plugin will come out soon and will be compatible with Jekyll 3.1.2.

You may also want to try this plugin: https://github.com/vwochnik/jekyll-language-plugin

Anthony-Gaudino avatar May 03 '16 00:05 Anthony-Gaudino

The version 1.4.0 of this plugin was just released with support for Jekyll 3, you can try it and see if it solves your problem.

Anthony-Gaudino avatar May 16 '16 15:05 Anthony-Gaudino

Just as commentary - I had this problem when updating to version 1.4 of the plugin... for me the issue was that the plugin was not being loaded properly (I didn't update the _plugins/plugins.rb file correctly). Fixing that file fixed the issue for me.

jamesmaniscalco avatar Jun 13 '16 03:06 jamesmaniscalco

I have run into this problem trying to deploy a Jekyll site to Github pages. I am using Jekyll 3.8.6 and jekyll-multiple-languages-plugin 1.6.1 (installed via Gemfile)

Is there a solution for this problem?

ruan-brandao avatar Mar 31 '20 13:03 ruan-brandao

@ruan-brandao I had the same problem with GitHub Pages. As stated on Jekyll official website's plugin page:

GitHub Pages is powered by Jekyll. All GitHub Pages sites are generated using the --safe option to disable plugins (with the exception of some whitelisted plugins) for security reasons. Unfortunately, this means your plugins won't work if you’re deploying via GitHub Pages.

You can still use GitHub Pages to publish your site, but you’ll need to build the site locally and push the generated files to your GitHub repository instead of the Jekyll source files.

However, it is still possible to use the plugin in github pages, by using to the jeffreytse/jekyll-deploy-action.

AngeloFilaseta avatar Nov 21 '22 16:11 AngeloFilaseta