From b814f306d8677c588dd4ab61a486dac54e28f794 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 4 Sep 2017 21:35:09 -0400 Subject: [PATCH] Fix Liquid syntax error in `feature_row` include Fix "Expected id but found open_square in `"{{page.[include.id] }}"`" in `feature_row` include. --- CHANGELOG.md | 2 +- _includes/feature_row | 2 +- docs/_docs/18-history.md | 4 ++-- docs/_includes/feature_row | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd05194b..a0945e8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ - Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196) - Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199) - Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223) -- Fix Fix Liquid syntax error: "Expected id but found open_square in `"{{page.[include.id] }}"`" in `gallery` include. +- Fix Liquid syntax error: "Expected id but found open_square in `"{{page.[include.id] }}"`" in `gallery` and `feature_row` includes. - Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include. ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) diff --git a/_includes/feature_row b/_includes/feature_row index d5b7e23d..1cfefff0 100644 --- a/_includes/feature_row +++ b/_includes/feature_row @@ -1,5 +1,5 @@ {% if include.id %} - {% assign feature_row = page.[include.id] %} + {% assign feature_row = page[include.id] %} {% else %} {% assign feature_row = page.feature_row %} {% endif %} diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index d3c2eda9..dad45ffa 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -4,7 +4,7 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2017-09-04T21:14:27-04:00 +last_modified_at: 2017-09-04T21:28:52-04:00 --- ## Unreleased @@ -26,7 +26,7 @@ last_modified_at: 2017-09-04T21:14:27-04:00 - Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196) - Remove `#disqus_thread` duplicate from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199) - Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223) -- Fix Fix Liquid syntax error: "Expected id but found open_square in `"{{page.[include.id] }}"`" in `gallery` include. +- Fix Liquid syntax error: "Expected id but found open_square in {% raw %}`"{{page.[include.id] }}"`"{% endraw %} in `gallery` and `feature_row` includes. - Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include. ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) diff --git a/docs/_includes/feature_row b/docs/_includes/feature_row index d5b7e23d..1cfefff0 100644 --- a/docs/_includes/feature_row +++ b/docs/_includes/feature_row @@ -1,5 +1,5 @@ {% if include.id %} - {% assign feature_row = page.[include.id] %} + {% assign feature_row = page[include.id] %} {% else %} {% assign feature_row = page.feature_row %} {% endif %}