Skip to content

Commit

Permalink
jekyll: sset strict_variables to false
Browse files Browse the repository at this point in the history
Use `contains` for explicit nested config check for one missing var
See: Shopify/liquid#1034 (comment)
  • Loading branch information
EricCousineau-TRI committed Feb 18, 2021
1 parent 0fe5f62 commit aad31cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ kramdown:

liquid:
error_mode: strict
strict_variables: true
strict_variables: false
strict_filters: true
2 changes: 1 addition & 1 deletion doc/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li class="site-menu-item">
{% if item.url %}<a href="{{ item.url | relative_url }}" class="site-menu-item">{% endif %}{{ item.title }}{% if item.url %}</a>{% endif %}

{% if item.subfolderitems[0] %}
{% if item contains "subfolderitems" %}
<div class="sub">
{% for entry in item.subfolderitems %}
<a href="{{ entry.url | relative_url }}" class="site-menu-item">{{ entry.page }}</a>
Expand Down

0 comments on commit aad31cd

Please sign in to comment.