layout |
---|
minimal |
{% assign domains = "Generation,Transmission,Distribution,DER,Customer Premises" | split: "," %}
{% for domain in domains %}
{{ domain}}
{% endfor %}
{% for project in site.data.projects %}
{% assign grid-column-start = 5 %}
{% assign grid-column-end = 1 %}
{% for domain in domains %}
{% if project['Categories'] contains domain %}
{% 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 %}
{% assign zones = "Field,Station,Operation,Enterprise,Market" | split: "," %}
{% for zone in zones %}
{% for project in site.data.projects %}
{{ zone }}
{% endfor %}
{% for project in site.data.projects %}
{% assign grid-column-start = 5 %}
{% assign grid-column-end = 1 %}
{% for zone in zones %}
{% if project['Categories'] contains zone %}
{% 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 %}
{% for domain in domains %}
{% endfor %}
{{ domain}}
{% endfor %}
{% for zone in zones %}
{{ zone }}
{% endfor %}
{% assign grid-column-start = 5 %}
{% assign grid-column-end = 1 %}
{% for domain in domains %}
{% if project['Categories'] contains domain %}
{% 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 %}
{% assign grid-row-start = 5 %}
{% assign grid-row-end = 1 %}
{% for zone in zones %}
{% if project['Categories'] contains zone %}
{% if forloop.index < grid-row-start %}
{% assign grid-row-start = forloop.index %}
{% endif %}
{% if forloop.index > grid-row-end %}
{% assign grid-row-end = forloop.index %}
{% endif %}
{% endif %}
{% endfor %}