blog/_includes/gallery.html

18 lines
722 B
HTML

{%- assign URIs = include.URIs | split: ';' -%}
<div id="aGallery" class="gallery post-gallery">
<link rel="stylesheet" href="/css/gallery.min.css">
<div class="images">
{% for URI in URIs %}
<div {% if URI == URIs[0] %}class="active"{% endif %} style="background-image: url(/img/blog/{{ URI }})"></div>
{% endfor %}
<span class="left"></span>
<span class="right"></span>
</div>
<div class="thumbs">
{% for URI in URIs %}
<div {% if URI == URIs[0] %}class="active"{% endif %} style="background-image: url(/img/blog/{{ URI }})"></div>
{% endfor %}
</div>
<script type="text/javascript" src="/js/hammer-2.0.8.min.js"></script>
<script type="text/javascript" src="/js/gallery.min.js"></script>
</div>