Skip to content

Commit

Permalink
jekyll: Do not use strict mode (RobotLocomotion#14672)
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 authored and josephsnyder committed Mar 16, 2021
1 parent 2d9e3c3 commit 1785319
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions doc/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ kramdown:
show_warnings: true

liquid:
error_mode: strict
strict_variables: true
strict_filters: true
# TODO(eric.cousineau): Make these stricter at some point.
error_mode: warn
strict_variables: false
strict_filters: false
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 1785319

Please sign in to comment.