Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 Exception: Liquid syntax error (line 16): Unknown tag 'include_cached' in /_layouts/default.htm #1875

Closed
RichStone opened this issue Oct 4, 2018 · 12 comments

Comments

@RichStone
Copy link

RichStone commented Oct 4, 2018

Environment

rich@MBP-de-Rich:~/code/src/github.com/richstone.github.io$ bundle exec jekyll --version
jekyll 3.7.4
  • Minimal Mistakes version: from repo
  • Ruby gem or remote theme version: ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
  • Jekyll version: 3.7.4
  • Git repository URL: https://github.com/RichStone/richstone.github.io
  • Operating system: MacOS

Expected behavior

rich@MBP-de-Rich:~/code/src/github.com/richstone.github.io$ JEKYLL_ENV=production bundle exec jekyll serve --trace

should serve locally

instead there comes this error message:

rich@MBP-de-Rich:~/code/src/github.com/richstone.github.io$ JEKYLL_ENV=production bundle exec jekyll serve --trace
Configuration file: /Users/rich/code/src/github.com/richstone.github.io/_config.yml
            Source: /Users/rich/code/src/github.com/richstone.github.io
       Destination: /Users/rich/code/src/github.com/richstone.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
      Remote Theme: Using theme mmistakes/minimal-mistakes
  Liquid Exception: Liquid syntax error (line 16): Unknown tag 'include_cached' in /_layouts/default.html
bundler: failed to load command: jekyll (/usr/local/bin/jekyll)
Liquid::SyntaxError: Liquid syntax error (line 16): Unknown tag 'include_cached'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/document.rb:23:in `unknown_tag'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/document.rb:11:in `block in parse'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:33:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/document.rb:10:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/document.rb:5:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/template.rb:132:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/liquid-4.0.0/lib/liquid/template.rb:116:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:13:in `block in parse'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:49:in `measure_time'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:12:in `parse'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:118:in `render_liquid'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:188:in `render_layout'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:155:in `place_in_layouts'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:85:in `render_document'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:62:in `run'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:462:in `block (2 levels) in render_docs'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in `each'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in `block in render_docs'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in `each_value'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in `render_docs'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:190:in `render'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:73:in `process'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/command.rb:28:in `process_site'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:65:in `build'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:36:in `process'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/serve.rb:93:in `block in start'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/serve.rb:93:in `each'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/serve.rb:93:in `start'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
  /Library/Ruby/Gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
  /Library/Ruby/Gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
  /Library/Ruby/Gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
  /Library/Ruby/Gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
  /Library/Ruby/Gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
  /Library/Ruby/Gems/2.3.0/gems/jekyll-3.7.4/exe/jekyll:15:in `<top (required)>'
  /usr/local/bin/jekyll:22:in `load'
  /usr/local/bin/jekyll:22:in `<top (required)>'

Unfortunately, I don't remember anymore what could have caused this error. I reverted all changes (which were really minor ones) and pulled the code from master. It runs fine on datagoodie.com and on https://richstone.github.io.

I did a bundle update which did not help and also sudo gem update --system / sudo gem update

Does it have something to do with jekyll / ruby installation or with the theme?

@mmistakes
Copy link
Owner

You haven't done anything wrong. The theme now uses the jekyll-include-cache plugin. And while it is supported by GitHub Pages, they don't enabled it by default. You need to opt in and add it to the plugins array of your _config.yml.

plugins:
  - jekyll-paginate
  - jekyll-sitemap
  - jekyll-gist
  - jekyll-feed
  - jemoji
  - jekyll-include-cache

@RichStone
Copy link
Author

Thanks for the fix!

How do I know in future that the theme was updated with new gems and that I have to install them and add them to config.yaml/gemfile?

@mmistakes
Copy link
Owner

@RichStone check the CHANGELOG. Any updates made to the theme are noted there.

What I would suggest to avoid future disruptions is you lock the theme to current released version, and upgrade when you want to. This will avoid you pulling down features that may not be backwards compatible with your content.

If you're using the theme as a Ruby gem you'd add the version to your Gemfile like this:

gem "minimal-mistakes-jekyll", "4.13.0"

And if you're using it as a remote theme you can lock it like this in your _config.yml:

remote_theme: "mmistakes/minimal-mistakes@4.13.0"

Ipstenu added a commit to LezWatch/lezwatch.github.io that referenced this issue Oct 5, 2018
@RichStone
Copy link
Author

Thank you very much! Everything seems to work now, although I was in a nokogiri hell while installing everything on my mac 🙈

lkuper added a commit to lkuper/CMPS290S-2018-09 that referenced this issue Oct 6, 2018
gbevan added a commit to goethite/gostint that referenced this issue Oct 11, 2018
ciferkey added a commit to ciferkey/ciferkey.github.com that referenced this issue Oct 14, 2018
MartinoMensio added a commit to MartinoMensio/martinomensio.github.io that referenced this issue Oct 16, 2018
w9wen added a commit to w9wen/w9wen.github.io that referenced this issue Oct 19, 2018
sankichi92 added a commit to sankichi92/blog.sankichi.net that referenced this issue Oct 21, 2018
0xvext added a commit to 0xvext/0xvext.github.io that referenced this issue Oct 23, 2018
szeestraten added a commit to szeestraten/szeestraten.github.io that referenced this issue Oct 24, 2018
eginwong added a commit to eginwong/eginwong.github.io that referenced this issue Oct 27, 2018
wilsoncg added a commit to wilsoncg/wilsoncg.github.io that referenced this issue Oct 27, 2018
lkuper added a commit to lkuper/CMPS290S-2018-09 that referenced this issue Oct 31, 2018
yuanqingfei pushed a commit to yuanqingfei/yuanqingfei.github.io that referenced this issue Nov 19, 2018
dialogbox pushed a commit to dialogbox/dialogbox.github.io that referenced this issue Nov 28, 2018
eigenfoo added a commit to eigenfoo/old-eigenfoo.github.io that referenced this issue Jan 3, 2019
* New comment (mmistakes#1715)

* New comment (mmistakes#1716)

* Update french labels (mmistakes#1741)

* Update CHANGELOG and history

* Add note about updating Gemfile when forking theme

* Fix link

* Update font awesome (mmistakes#1754)

* Update scripts.html

* update to 5.2.0

REF: https://github.com/FortAwesome/Font-Awesome/releases

* Update CHANGELOG and history

* Allow time to be shown with a header image overlay (mmistakes#1756)

Fix `read_time` logic in header image overlay

* Update CHANGELOG and history

* Add french translations (mmistakes#1769)

* Update CHANGELOG and history

* remove the slash at the beginning of the 'path' in staticman.yml's example (mmistakes#1772)

* Remove slash at the beginning of `path` in staticman.yml example

* Bump dependencies

* Release 4.12.1 💎

* Update CHANGELOG and history

* Add `{{ content }}` to `home` layout (mmistakes#1775)

* Add `{{ content }}` to `home` layout

Allow the author to add content which will appear above the list of
recent posts. This also allows the `home` layout to be extended.

Add text to index.html in tests to indicate that the content appears in
the correct spot.

* Add paragraph markup

Since this is a HTML file, proper paragraph markup is needed.

* Update CHANGELOG and history

* Improve side navigation spacing in relation to masthead

* Style archive links with appropriate link color

* Adjust feature row spacing and font-sizes

* Use sentence case for better readability

* Increase font-size to improve readability

* Update CHANGELOG and history

* Increase navigation min-height

* Switch `$nav-height` to a relative unit

* Update Staticman commit message to include name

* Adjust height of navigation toggle

* Add test menu items

* Fixing scaling issue w. emoji in Sidebar Author Profile (mmistakes#1780)

* Fixing scaling issue w. emoji in Sidebar Author Profile

Had the same issue as in mmistakes#1554

So should there be more demand for having emojis in sidebar, this style change fixes it

* Fix indendation and nesting

* Update CHANGELOG and history

* Fix: use relative links for menu items when possible (mmistakes#1783) (mmistakes#1784)

* Update CHANGELOG and history

* Fix capitalization

* Reduce padding and adjust toc `font-size`

Fit more text to handle indentation better.

Ref: mmistakes#1782

* Allow heading levels 1-6 in table of contents

Adjust minimum and maximum levels to allow all headings and fix CSS to style indentation and nested lists properly in jekyll-toc and Kramdown generated table of contents.

Fixes mmistakes#1782

* Add table of contents test posts

* Add table of contents test post

* Update jekyll-toc to v1.0.5

* Update CHANGELOG and history

* Add table of contents test posts

* Adjust toc indents

* Fix heading levels in comments section

* Fix TOC icon

* Wrap Liquid tag with `{% raw %}`

* New comment by Richard Rich Steinmetz (mmistakes#1796)

* Add Italian translation for search (mmistakes#1793)

* Add missing translation texts

* Update CHANGELOG and history

* Release 4.12.2 💎

* Update CHANGELOG and history

* Place `:hover` declarations after `:visited` to fix hover animation

Fixes mmistakes#1820

* Update CHANGELOG and history

* Fix sidebar navigation list toggle.

Prettier managled `@include breakpoint` media queries causing the input/checkbox toggle hack styles to go missing.

Fixes mmistakes#1819

* Add support to gallery helper for defining column layout

e.g. `{% include gallery id="gallery" layout="half" caption="2 column gallery caption" %}

Fixes mmistakes#1821

* Add header `actions` array support for multiple call to action links

```
header:
  overlay_image: /assets/images/unsplash-image-1.jpg
  og_image: /assets/images/page-header-og-image.png
  caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
  actions:
    - label: "Learn More"
      url: "https://unsplash.com"
```

Fixes mmistakes#1461

* Improve author link flexibility

Deprecate social networking links in `_config.yml` in favor or new `author.links` array for any link and in any order. All of Font Awesome's icons are available for use.

```
author:
  links:
    - label: "Your Website"
      icon: "fas fa-fw fa-link"
      url: "https://your-site.com"
    - label: "Twitter"
      icon: "fab fa-fw fa-twitter-square"
      url: "https://twitter.com/username"
    - label: "GitHub"
      icon: "fab fa-fw fa-github"
      url: "https://github.com/username"
    - label: "Instagram"
      icon: "fab fa-fw fa-instagram"
      url: "https://instagram.com/username"
```

Fixes mmistakes#1581

* Improve footer link flexibility

Deprecate hardcoded footer links in favor or new `footer.links` array for any link and in any order. All of Font Awesome's icons are available for use.

```
footer:
  links:
    - label: "Twitter"
      icon: "fab fa-fw fa-twitter-square"
      url: "https://twitter.com/username"
    - label: "GitHub"
      icon: "fab fa-fw fa-github"
      url: "https://github.com/username"
    - label: "Instagram"
      icon: "fab fa-fw fa-instagram"
      url: "https://instagram.com/username"
```

* Update CHANGELOG and history

* Add social icon colors for Reddit and Mastodon

* Update ui-text.yml with Romanian translation (mmistakes#1814)

* Update ui-text.yml with Romanian translation

Added the translations for Romanian

* Update ui-text.yml

Corrected „less_than” with a proper translation for the context where it is being used

* Update docs

Added Romanian to the languages list

* Add Romanian localized UI text strings

* Release 4.13.0 💎

* Remove deprecated `base_path` include helper

* Properly apply `relative_url` filter to internal links in header overlay `actions` array

* Always load Google 404 Linkhelp script over HTTPS (mmistakes#1829)

Also removed unneeded type

* Update CHANGELOG and history

* Update Font Awesome to latest version (mmistakes#1830)

* Update CHANGELOG and history

* Remove unneeded HandheldFriendly and MobileOptimized meta tags (mmistakes#1837)

Fixes: mmistakes#1835

* Update CHANGELOG and history

* Update algolia-search-scripts.html (mmistakes#1836)

not needed for HTML5 and saves a few bytes by removing

* Update CHANGELOG and history

* Allow custom Staticman endpoints (mmistakes#1845)

* Update CHANGELOG and history

* Change GitHub issue templates

* New comment by Bobby (mmistakes#1863)

* Make entire archive/feature item "clickable" (mmistakes#1864)

* Make entire feature item "clickable"

Use a pseudo element on the call to action button to cover the entire feature item and make it "clickable".

* Make entire archive item "clickable"

Use a pseudo element on the `<a>` element to cover the entire archive item and make it "clickable".

* Update CHANGELOG and history

* Reference issue

* Cache "static" includes to improve build performance (mmistakes#1874)

* Add jekyll-include-cache plugin
* Cache "static" includes to improve build performance
* Update CHANGELOG and history

"Static" refers to those includes that don't rely on data passed from the page content.

* Add notice for fixing `Unknown tag 'include_cached'`

Fixes mmistakes#1875

* Add jekyll-include-cache to docs `Gemfile`

* Move jekyll-include-cache notice up

* Fix Lunr search index merging words (mmistakes#1884)

Close mmistakes#1883

* Update CHANGELOG and history

* Update LUNR to 2.3.3 (mmistakes#1885)

Close mmistakes#1882

* Update CHANGELOG and history

* Update license (mmistakes#1886)

* Fix license path

* Fix Algolia search link positioning (mmistakes#1904)

* Add link for testing purposes
* Fix excerpt link positioning in Algolia search results
* Fix Algolia search input color
* Update CHANGELOG and history

Fixes mmistakes#1903

* Revert caching for comments and analytics. Fixes mmistakes#1905 (mmistakes#1907)

* Update history

* Hindi Translation of ui-text mmistakes#1887 (mmistakes#1888)

* Hindi Translation of ui-text mmistakes#1887
* Update README.md and about.md

* Update CHANGELOG and history

* New comment by Jair G (mmistakes#1911)

* Fix breadcrumb navigation alignment

Fixes mmistakes#1917

* Improve color contrast of primary buttons and links

* Remove unnecessary closing bracket (mmistakes#1915)

* Update CHANGELOG and history

* Fix link

* Fix link

* Fix broken link in layout documentation

Close mmistakes#1940

* add integrity hash for Font Awesome script (mmistakes#1922)

* add integrity hash for Font Awesome script

As the script is loaded from an external CDN (use.fontawesome.com), its integrity must be ensured mainly for security reasons.
This hash must be updated together with the exact version of Font Awesome, as given on their website.

* Update to FontAwesome 5.5.0

* Update CHANGELOG and history

* Add rel attribute to social media links in author profile and fotter (mmistakes#1924)

* Update CHANGELOG and history

* Add `crossorigin` attribute to FontAwesome script

ref mmistakes#1922

* Fix FontAwesome script

ref mmistakes#1922

* Add `jekyll-include-cache` installation instructions

* Update 05-configuration.md (mmistakes#1956)

* Update last modified time

* Added missing ref attribute (mmistakes#1959)

As suggested by @mmistakes in mmistakes#1948 (comment)

* Use privacy aware embed options for YouTube & Vimeo (mmistakes#1964)

* Update CHANGELOG and history

* Punjabi Translation of ui-text (mmistakes#1962)

* Punjabi Translation of ui-text

There are more than 100 million native speakers of Punjabi language. I am one of them. More details about [punjabi on wikipedia](https://en.wikipedia.org/wiki/Punjabi_language).
All the punjabi translations are perfect with the following exceptions-
  - in the variable name (_config.yml and words_per_minute) which are intentionally left in english.
  - meta_label is empty

* Update CHANGELOG and history

* Add support for utterances (mmistakes#1966)

* Add support for utterances
* Add utterances config documentation
* Update CHANGELOG and history

Close mmistakes#1909

* Update localized text list

* Update README.md

* Update theme documentation

* Increase font-size

* Increase padding

* Add focus color

* Adjust navigation toggles

* Use dark syntax highlighting

* Update CHANGELOG and history

* Add Google Drive as video provider (mmistakes#1967)

* Add Google Drive provider documentation

* Update CHANGELOG and history

* Changed schema.org to secure links (https) (mmistakes#1969)

* Update CHANGELOG and history

* Prevent current post from showing in the "You may also enjoy" (related (mmistakes#1976)

posts) section

* Update CHANGELOG and history

* Change teaser image

* Disable comments

* Add hover state

* Release 4.14.0 💎

* Update CHANGELOG

* Fix closed navicon on hover

* Release 4.14.1 gem

* Update NPM dependencies

cc/ mmistakes#1977

* Change remaining schema.org markup to `https` (mmistakes#1978)

* Update CHANGELOG and history

* Update about.md (mmistakes#1981)

Just a minor addition, the word Hindi written in devnagri script (the script used for this language). Makes it easier to visually understand what script we are talking about.

* Update README.md (mmistakes#1982)

Just a minor addition, the word Hindi written in devnagri script (the script used for this language). Makes it easier to visually understand what script we are talking about.

* Fix function name for Google Custom Search (mmistakes#1983)

fbafe58 renamed the function in the
scripts file, but did not rename the call sites.

* Update CHANGELOG and history

* Allow sidebar navs with custom sidebar content

Multiple sidebar navs can also be included on a page:

```
sidebar:
  - title: Navigation 1
    nav: nav1
  - title: Navigation 2
    nav: nav2
```

Fixes mmistakes#1986

* Update test post

* Update CHANGELOG and history

* Update YAML example

* Fix broken image

Close mmistakes#1994

* Fix broken image

* HTTPS Twitter short link (mmistakes#2001)

* Fixed Netlify typo (mmistakes#2013)

* update font awesome (mmistakes#1995)

REF: https://fontawesome.com/changelog/latest

* Update CHANGELOG and history

* Remove unused variables (mmistakes#1996)

* Update CHANGELOG and history

* [Bug fix]: Added missing Staticman Spanish UI text (mmistakes#1997)

Taken from line 91 of 5d-eu/messages.php@ec56008

* Update CHANGELOG and history

* Persian Translation of UI Elements (mmistakes#2004)

* Add Persian translation to ui-text.yml
* Mention the added Persian translation in the documentation

* Update CHANGELOG and history

* shorter IE conditional statement (mmistakes#2006)

saves 5 bytes :-)

* Update CHANGELOG and history

* Fix typo

* lunr 2.3.5 update (mmistakes#2010)

* Update CHANGELOG and history

* Fix wide tables that overflow parent container

Close mmistakes#2008

* Accessibility: Add aria-label to the search button (mmistakes#2014)

* Accessibility: Add aria-label to the search button
* Update button aria text
* Add aria text to menu toggle
* Add span for search toggle
* Update span for menu label & remove aria
* Update ui-text.yml to add search_label

* Update

* Update CHANGELOG and history

* Update copyright year

* Release 4.14.2 💎

* MAINT: remove .github directory

* BUG: fixed minor typo
@bjwo
Copy link

bjwo commented Jan 15, 2019

I am currently also getting the same error, even though I made sure that jekyll-include-cache is listed in the plugins section. I tried the a) gem-based method, b) Remote theme method c) cloning the repo. I installed all dependencies using bundler, and jekyll-include-cache also gets installed.

I am using the latest release v4.14.2

Any clues what I am doing wrong?

bundle install --force
Fetching gem metadata from https://rubygems.org/.........
Installing concurrent-ruby 1.1.4
Installing i18n 0.9.5
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing tzinfo 1.2.5
Installing activesupport 5.2.2
Installing public_suffix 3.0.3
Installing addressable 2.5.2
Using bundler 1.17.3
Installing colorator 1.1.0
Installing eventmachine 1.2.7 (x64-mingw32)
Installing http_parser.rb 0.6.0 with native extensions
Installing em-websocket 0.5.1
Installing multipart-post 2.0.0
Installing faraday 0.15.4
Installing ffi 1.10.0 (x64-mingw32)
Installing forwardable-extended 2.6.0
Installing gemoji 3.0.0
Installing mini_portile2 2.4.0
Installing nokogiri 1.10.1 (x64-mingw32)
Installing html-pipeline 2.10.0
Installing rb-fsevent 0.10.3
Installing rb-inotify 0.10.0
Installing sass-listen 4.0.0
Installing sass 3.7.3
Installing jekyll-sass-converter 1.5.2
Installing ruby_dep 1.5.0
Installing listen 3.1.5
Installing jekyll-watch 2.1.2
Installing kramdown 1.17.0
Installing liquid 4.0.1
Installing mercenary 0.3.6
Installing pathutil 0.16.2
Installing rouge 3.3.0
Installing safe_yaml 1.0.4
Installing jekyll 3.8.5
Installing jekyll-data 1.0.0
Installing jekyll-feed 0.11.0
Installing sawyer 0.8.1
Installing octokit 4.13.0
Installing jekyll-gist 1.5.0
Installing jekyll-include-cache 0.1.0
Installing jekyll-paginate 1.1.0
Installing jekyll-sitemap 1.2.0
Installing jemoji 0.10.1
Installing minimal-mistakes-jekyll 4.14.2
Bundle complete! 2 Gemfile dependencies, 46 gems now installed.

@mmistakes
Copy link
Owner

@bjwo And you're running Jekyll with bundle exec jekyll build correct?

Do you have a public repo I can look at? If you have the include cache plugin in your Gemfile and it's under plugins in _config.yml then it should work.

@bjwo
Copy link

bjwo commented Jan 15, 2019

@mmistakes Yes, that's correct, and I have the jekyll-include-cache in my Gemfile and under plugins.

However, I doubt that it's the repo, but rather my setup, as I also have tried to clone your repo and bundle exec jekyll serve that locally after running bundle install and that also fails.

Is there any better way how I can debug this? Thanks, Björn

@mmistakes
Copy link
Owner

mmistakes commented Jan 15, 2019

@bjwo If you have a public repo I can try and build your site and see if I get the same error. If I don't then it's definitely your Ruby environment.

You'd be surprised how often it's something silly that I can easily spot if I can see your actual code in the repo... that's why I asked.

apocalyptech added a commit to apocalyptech/blcm-web that referenced this issue Mar 29, 2019
@sagnikb
Copy link

sagnikb commented Apr 16, 2019

Hi! I did all of the suggested things - added jekyll-include-cache to plugins, and tried bundle install --force which worked too, but I still get the same error. Any ideas?

@bjwo - did you solve the problem?

dailyherold added a commit to dailyherold/dailyherold.github.io that referenced this issue Apr 18, 2019
lshepard pushed a commit to BreakthroughBots/breakthroughbots.github.io that referenced this issue Apr 24, 2019
kkunapuli pushed a commit to kkunapuli/kkunapuli.github.io that referenced this issue May 30, 2019
@enjaku
Copy link

enjaku commented Jul 31, 2019

A bit new at this but having the same error.
The tag include_cached on line 16 in /_layouts/default.html is not a recognized Liquid tag...

From config.yml
'#' Plugins (previously gems:)
plugins:

  • jekyll-paginate
  • jekyll-sitemap
  • jekyll-gist
  • jekyll-feed
  • jemoji
  • jekyll-include-cache

'#' mimic GitHub Pages with --safe
whitelist:

  • jekyll-paginate
  • jekyll-sitemap
  • jekyll-gist
  • jekyll-feed
  • jemoji
  • jekyll-include-cache

Gemfile:
source "https://rubygems.org"
gem "jekyll-include-cache"

*** LOCAL GEMS ***
...
jekyll (3.8.6)
jekyll-include-cache (0.2.0)
...

enjaku.github.io git:(master) ✗ bundle exec jekyll build
WARNING: Error reading configuration. Using defaults (and options).
Configuration file: (INVALID) /Users/ericstewart/Desktop/enjaku.github.io/_config.yml
Source: /Users/ericstewart/Desktop/enjaku.github.io
Destination: /Users/ericstewart/Desktop/enjaku.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: Liquid syntax error (line 16): Unknown tag 'include_cached' in /_layouts/default.html
jekyll 3.8.6 | Error: Liquid syntax error (line 16): Unknown tag 'include_cached'

At a bit of a loss here. I've been playing with this for three days now.

sumeetmondal pushed a commit to sumeetmondal/sumeetmondal.github.io that referenced this issue Sep 10, 2019
jkooij added a commit to jkooij/jkooij.github.io that referenced this issue Sep 30, 2019
Gitgub gives a building error: "The tag include_cached on line 15 in
/_layouts/default.html is not a recognized Liquid tag"

This fix is from
mmistakes/minimal-mistakes#1875 (comment)
jkooij added a commit to jkooij/jkooij.github.io that referenced this issue Sep 30, 2019
Gitgub gives a building error: "The tag include_cached on line 15 in
/_layouts/default.html is not a recognized Liquid tag"

This fix is from
mmistakes/minimal-mistakes#1875 (comment)
baoilleach added a commit to openbabel/openbabel.github.io that referenced this issue Oct 10, 2019
@hyunnna
Copy link

hyunnna commented Apr 13, 2020

please help me..
The tag img on line 3 in /_layouts/post.html is not a recognized Liquid tag.

I have this error every I try.

This is my /_layouts/post.html code.


layout: base

{% if page.cover %}

{% img page.cover cover %}
{% endif %}

{{ page.title }}

{% for category in page.categories %}
{{ category }}{% unless forloop.last%}, {% endunless %}{% endfor%} - {{ page.date | date: "%m/%d/%Y" }}
{% for tag in page.tags %} {% if tag != site.sticky %}
{{ tag }}
{% endif %} {% endfor %}
{{ content }}

I don't know how can I fix this problem.

drivextech added a commit to drivextech/drivextech.github.io that referenced this issue Jun 26, 2020
@neilernst
Copy link

I had an older version of MM where the _config.yml key was plugins_dir. Renaming that to plugins fixed the issue.

Repository owner locked and limited conversation to collaborators May 20, 2021
kaitokikuchi pushed a commit to kaitokikuchi/kaitokikuchi.github.io that referenced this issue Sep 4, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

7 participants