From e8d83de8b71998a2bc40ba0ac6b723b16ccc3b92 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 4 Sep 2017 21:14:36 -0400 Subject: [PATCH] Fix Liquid syntax error: Expected id but found open_square in `"{{page.[include.id] }}"` --- CHANGELOG.md | 3 ++- _includes/gallery | 2 +- docs/_docs/18-history.md | 5 +++-- docs/_includes/gallery | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5170c3a6..6ac58cca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ - Fix license URL in README file. [#1189](https://github.com/mmistakes/minimal-mistakes/pull/1189) - 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 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 Liquid syntax esrrors 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. ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) diff --git a/_includes/gallery b/_includes/gallery index 5983239c..3d4c0379 100644 --- a/_includes/gallery +++ b/_includes/gallery @@ -1,5 +1,5 @@ {% if include.id %} - {% assign gallery = page.[include.id] %} + {% assign gallery = page[include.id] %} {% else %} {% assign gallery = page.gallery %} {% endif %} diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 39106f26..6a0fdf77 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:05:35-04:00 +last_modified_at: 2017-09-04T21:14:27-04:00 --- ## Unreleased @@ -25,7 +25,8 @@ last_modified_at: 2017-09-04T21:05:35-04:00 - Fix license URL in README file. [#1189](https://github.com/mmistakes/minimal-mistakes/pull/1189) - 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 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 Liquid syntax esrrors 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. ## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1) diff --git a/docs/_includes/gallery b/docs/_includes/gallery index 5983239c..3d4c0379 100644 --- a/docs/_includes/gallery +++ b/docs/_includes/gallery @@ -1,5 +1,5 @@ {% if include.id %} - {% assign gallery = page.[include.id] %} + {% assign gallery = page[include.id] %} {% else %} {% assign gallery = page.gallery %} {% endif %}