Sha256: dcbaa1cf8d1419b3688a4dc89ada1b5659e80d8a23c5c3e555d4bc8f3744ed2e

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

<style>
  .image-gallery {
    overflow: auto;
    margin-left: -1% !important;
  }

  .image-gallery a {
    float: left;
    display: block;
    margin: 0 0 1% 1%;
    width: 19%;
    text-align: center;
    text-decoration: none !important;
  }

  .image-gallery a span {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 3px 0;
  }

  .image-gallery a img {
    width: 100%;
    display: block;
  }

</style>

<div class="row justify-content-md-center h-100 mb-3">
  {% for file in site.static_files %}
  {% if file.path contains include.folder %}
  {% if file.extname == '.jpg' or file.extname == '.jpeg' or file.extname == '.JPG' or file.extname == '.JPEG' %}
  {% assign filenameparts = file.path | split: "/" %}
  {% assign filename = filenameparts | last | replace: file.extname,"" %}

  <div class="col-md-4 h-100">
    <div class="thumbnail">
      <a href="{{ file.path | prepend: site.baseurl }}" title="{{ filename }}">
        <img src="{{ file.path | prepend: site.baseurl }}" alt="{{ filename }}" title="{{ filename }}" alt="Lights"
          style="width:100%">
        <div class="caption">
          <p>{{ filename }}</p>
        </div>
      </a>
    </div>
  </div>

  {% endif %}
  {% endif %}
  {% endfor %}
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
casjaysdev-jekyll-theme-0.1.7 _includes/image-gallery.html
casjaysdev-jekyll-theme-0.1.6 _includes/image-gallery.html