Source

PaigeHansen.com / photos.html

Full commit
{% extends base_template %}
{% load markup thumbnail %}
{% block title %}Photos |{% endblock %}

{% block content %}
<div class="island photogallery">

{% for photo in photos %}

	<a href="{% thumbnail photo.photo "640x520" %}" rel="lightbox[photo_gallery]" title="{{ photo.date|date:"F j, Y"}} {{photo.location}}::{{ photo.caption }}"><img class="photoentry {% if forloop.counter|divisibleby:"4" %}last{% endif %}" src="{% thumbnail photo.photo "185x170" crop=",9" %}" /></a>

{% if forloop.counter|divisibleby:"4" %}
	<div class="clear"></div>
{% endif %}

{% endfor %}


</div><!-- /island  -->
{% endblock %}