Update default templates

This commit is contained in:
Joseph Wynn 2018-08-23 16:04:11 +12:00
parent 6533035416
commit 0153b9fb9e
No known key found for this signature in database
GPG Key ID: F34B9E530F0D3AEE
3 changed files with 14 additions and 14 deletions

View File

@ -17,9 +17,9 @@ Usage:
<script> <script>
new Imager('.responsive-image__delayed', { new Imager('.responsive-image__delayed', {
availableWidths: [{{ resized | map: 'width' | join: ', ' }}] availableWidths: [{{ resized | map: 'width' | join: ', ' }}],
onImagesReplaced: function() { onImagesReplaced: function() {
$('.responsive-image__placeholder').hide(); $('.responsive-image__placeholder').hide()
} }
}); })
</script> </script>

View File

@ -15,4 +15,4 @@ Usage:
{% endfor %} {% endfor %}
{% endcapture %} {% endcapture %}
<img src="/{{ largest.path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }}"> <img src="/{{ largest.path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }} /{{ path }} {{ original.width }}w">

View File

@ -14,4 +14,4 @@ Usage:
{% endfor %} {% endfor %}
{% endcapture %} {% endcapture %}
<img src="/{{ path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }}"> <img src="/{{ path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }} /{{ path }} {{ original.width }}w">