Stop albums from displaying None when they don't need to
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / album_index.html
index 402deedfc0ab4d246474ec49b2b218f91a0965f1..33cbbc63cce2f4325ffbb82632c7299d6a3c3a95 100644 (file)
@@ -10,7 +10,9 @@
                 <a href="{{ album.slug }}/"><img src="{{ album.get_main_image.url|thumbnail:"width=250" }}" alt="{{ album.get_main_image.caption }}" /></a>
                 {% endif %}
                 <h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
+                {% if album.caption %}
                 <p>{{ album.caption }}</h2>
+                {% endif %}
             </div>
         {% endfor %}
         {% if is_paginated %}