{# Make sure any variables are listed inside the following if statement #} {% if context %} {% set details_open = context.details_open %} {% set details_summary = context.details_open %} {% set details_content = context.details_open %} {% endif %}
{{ details_summary }} {{ details_content }}
{# You can do Nunjucks logic in your templates that references the .yml settings What's Nunjucks: https://mozilla.github.io/nunjucks/templating.html #} {# {% if item.image == "blank" %} {% else %} {{ item.image }} {% endif %} #}