layout |
---|
minimal |
{% for domain in site.data.sgam.domains %}
{% endfor %}
{% for project in site.data.projects %}
{% assign grid-column-start = 5 %}
{% assign grid-column-end = 1 %}
{% for domain in site.data.sgam.domains %}
{% if project['Categories'] contains domain.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 %}