--- title: Images layout: default category: demos photos: - Stanley - Officer - Tony - Kendra - Giraffe - Gavin - Anita - Take My Portrait - Wonder ---

Masonry is triggered after all images are loaded with the imagesLoaded plugin.

{% highlight javascript %} var $container = $('#container'); $container.imagesLoaded( function(){ $container.masonry({ itemSelector : '.box' }); }); {% endhighlight %}
{% for photo in page.photos %}
{{ photo }}
{% endfor %}