Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquid syntax error: Unknown tag 'when' #7

Open
jinnatar opened this issue Dec 8, 2017 · 4 comments
Open

Liquid syntax error: Unknown tag 'when' #7

jinnatar opened this issue Dec 8, 2017 · 4 comments
Labels

Comments

@jinnatar
Copy link

jinnatar commented Dec 8, 2017

/srv/www/src/jekyll-bulma %> bundle exec jekyll serve
Configuration file: /srv/www/src/jekyll-bulma/_config.yml
       Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
            Source: /srv/www/src/jekyll-bulma
       Destination: /srv/www/src/jekyll-bulma/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
     Build Warning: Layout 'page' requested in vendor/bundle/ruby/2.3.0/gems/jekyll-3.5.2/lib/site_template/about.md does not exist.
    Liquid Warning: Liquid syntax error (line 130): Expected end_of_string but found colon in "{{prepend: site.baseurl | prepend: site.url}}" in /_layouts/default.html
  Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in vendor/bundle/ruby/2.3.0/gems/liquid-4.0.0/lib/liquid/locales/en.yml
jekyll 3.5.2 | Error:  Liquid syntax error (line 8): Unknown tag 'when'
@jinnatar
Copy link
Author

Stems from same root cause as #6 so I'll close this one.

@Shafran123
Copy link

sudo bundle exec jekyll build --config ./_config-dev.yml
Configuration file: ./_config-dev.yml
Source: /Users/shafran/mozilla-campus-clubs
Destination: /Users/shafran/mozilla-campus-clubs/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in commonmaeker/ruby/2.5.0/gems/liquid-4.0.0/lib/liquid/locales/en.yml
jekyll 3.7.4 | Error: Liquid syntax error (line 8): Unknown tag 'when'

i got this error how to fix

@selivandex
Copy link

Same thing

@erayaydin erayaydin reopened this Apr 4, 2019
@erayaydin erayaydin added the bug label Apr 4, 2019
@ulidtko
Copy link

ulidtko commented Apr 22, 2022

Fix this by ignoring the vendor/bundle subdir (≈ node_modules) in your _config.yaml:

--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -21,6 +21,7 @@ theme: jekyll-theme-minimal
 exclude:
   - Gemfile
   - Gemfile.lock
+  - vendor/bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants