Sha256: 1560243ee8ffdb83598c9b5546db088b264319bcac07bf5bc39b1f172246b8d0

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

{% if include.banner %}
  <div class="col-12 field__item">
    <div class="paragraph paragraph--type--from-library paragraph--view-mode--default">
      {% include banner/banner.html banner=include.banner %}
      <div class="field field--name-paragraphs field--type-entity-reference-revisions field--label-hidden">
        <div>
          <div class="field__item">
            <div class="paragraph paragraph--type--container paragraph--view-mode--default">
              <div class="field field--name-field-paragraph-container-items field--type-entity-reference-revisions field--label-hidden">
                <div class="row field__items">
                    {% comment %} Group in rows of 3 columns, distribute remaining over last row {% endcomment %} 
                    {% assign cols = 3 %}
                    {% assign total=include.banner.topics | size %}
                    {% assign remaininglast=total | minus:1 | modulo: cols | plus: 1 %}
                    {% for topic in include.banner.topics %}
                      {% assign inlastrow=total | minus: forloop.index | minus: remaininglast %}
                      {% if inlastrow < 0 %}
                        {% assign cols = remaininglast %}
                      {% endif %}
                      {% assign colw = 12 | divided_by: cols %}
                      {% include banner/topic.html colw=colw topic=topic  %}
                    {% endfor %}
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vliz-be-theme-0.4.4 _includes/banner/main.html
vliz-be-theme-0.4.3 _includes/banner/main.html
vliz-be-theme-0.4.1 _includes/banner/main.html
vliz-be-theme-0.4.0 _includes/banner/main.html