Sha256: 4c3ff47e60040fcf96678e5893c23cd3a66daaabde039ad742e2f9915ab5e65d

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

<style>
    .image-gallery {overflow: auto; margin-left: -1%!important;}
    .image-gallery li {float: left; display: block; margin: 0 0 1% 1%; width: 19%;}
    .image-gallery li a {text-align: center; text-decoration: none!important; color: #777;}
    .image-gallery li a span {display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 3px 0;}
    .image-gallery li a img {width: 100%; display: block;}
</style>

<ul class="image-gallery">
    {% 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,"" %}
    <li>
        <a href="{{ file.path | relative_url }}" title="{{ filename }}" target="_blank">
            <img src="{{ file.path | relative_url }}" alt="{{ filename }}" title="{{ filename }}" />
            <!--<span>{{ filename }}</span>-->
        </a>
    </li>
    {% endif %}
    {% endif %}
    {% endfor %}
</ul>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adam-jekyll-0.1.1 _includes/image-gallery.html
adam-jekyll-0.1.0 _includes/image-gallery.html