Sha256: d8e8385dc09c0245de012c5dc1cb38aa098918341c78dd7ffcddb8b18a51a011

Contents?: true

Size: 1.75 KB

Versions: 5

Compression:

Stored size: 1.75 KB

Contents

{% comment %}
========================================================
array of post is understood
data array attribute        "data"
modal id prefix attribute   "modalId"
=========================================================
{% endcomment %}
<!-- Modal -->
{% for post in include.data %}
<div class="modal fade" id="{{include.modalId}}{{ forloop.index }}" tabindex="-1" aria-labelledby="exampleModalLongTitle" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">{{ post.title }}</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="row">
          <div class="col-md"><div class="img-34" style="background-image:url('{{ post.img_v }}')"></div></div>
          <div class="col-md-5">
            <p class="mb-2 outfits-info mt-3 mt-md-0">
              {%- assign unique_outfits = post.outfits | uniq -%}
              {%- for outfit in unique_outfits -%}
              <span class="px-2 text-primary">{{ outfit.title }}</span>
              {%- endfor -%}
            </p>
            <p>{{post.excerpt | truncate: 150}}</p>
            <div class="row md-gutters">
            {%- for outfit in post.outfits -%}
              <div class="col-4 col-md-6 mb-3"><a href="{{ outfit.link }}" target="_blank"><div class="thumb-post gtm-shop-item" data-title="{{ outfit.title }} | {{ outfit.link }}" style="background-image:url('{{ outfit.img }}')"></div></a></div>
            {%- endfor -%}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{% endfor %}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hardpool-flat-3.1.0 _includes/qv_modal.html
hardpool-flat-3.0.0 _includes/qv_modal.html
hardpool-flat-2.2.0 _includes/qv_modal.html
hardpool-flat-2.1.0 _includes/qv_modal.html
hardpool-flat-2.0.0 _includes/qv_modal.html