{% assign album = site.data[page.storage][page.data] %}
{{ album['description'] }}

<script src="{{ site.baseurl }}public/js/jail.js"></script>
<script>
  $(function(){
    $('img.lazy').jail({ offset:5000 });
  });
</script>

<div class="storyCollection">

  {% for image in album.images %}

  <div class="storyItem" align="center">
    <img class="lazy" src="{{ site.baseurl }}public/placeholder.png" data-src="{{ image.source }}"/>
    <div class="storyCaption">

    {{ image.caption }}

    </div>
  </div>

  {% endfor %}

</div>

{% assign album = site.data[page.storage][page.data] %}
{{ album['description'] }}

<script src="{{ site.baseurl }}public/js/jail.js"></script>
<script>
  $(function(){
    $('img.lazy').jail({ offset:5000 });
  });
</script>

<div class="storyCollection">

  {% for image in album.images %}
  {% assign scaled_image = image.imageset | where: 'scale', '0.5' %}

  <div class="storyItem" align="center">
    <img class="lazy" src="{{ site.baseurl }}public/placeholder.png" data-src="{{ scaled_image[0].source }}"/>
    <div class="storyCaption">

    {{ image.caption }}

    </div>
  </div>

  {% endfor %}

</div>

Add support for scaled images
Add support for scaled images
