Fix Liquid syntax error: Expected id but found open_square in "{{page.[include.id] }}"

This commit is contained in:
Michael Rose
2017-09-04 21:14:36 -04:00
parent f19e74bc8f
commit e8d83de8b7
4 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{% if include.id %}
{% assign gallery = page.[include.id] %}
{% assign gallery = page[include.id] %}
{% else %}
{% assign gallery = page.gallery %}
{% endif %}