layout |
---|
minimal |
{% for zone in site.data.sgam.zones %}
{% endfor %}
{% for project in site.data.projects %}
{% assign grid-column-start = 6 %}
{% assign grid-column-end = 1 %}
{% for zone in site.data.sgam.zones %}
{% if project['Categories'] contains zone.name %}
{% if forloop.index < grid-column-start %}
{% assign grid-column-start = forloop.index %}
{% endif %}
{% if forloop.index > grid-column-end %}
{% assign grid-column-end = forloop.index %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}