aboutsummaryrefslogtreecommitdiff
path: root/assets/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'assets/templates/index.html')
-rw-r--r--assets/templates/index.html31
1 files changed, 16 insertions, 15 deletions
diff --git a/assets/templates/index.html b/assets/templates/index.html
index 61160a5..bf62607 100644
--- a/assets/templates/index.html
+++ b/assets/templates/index.html
@@ -11,23 +11,24 @@
{% endfor %}
</p>
{% for year in years %}
- <h2 id="{{ year.name }}">{{ year.name }}</h2>
- {% for album in year.albums %}
- {% if album.title %}
- <a href="{{ album.link }}"><h3>{{ album.title }}</h3></a>
- {% else %}
- <a href="{{ album.link }}"><h3>Untitled</h3></a>
- {% endif %}
- <div class="album-container">
- {% for thumb in album.thumbs %}
- {% if loop.index < 4 %}
- <a href="{{ thumb.link }}">
- <img class="thumbnail" src="{{ thumb.source }}">
- </a>
+ <h2 id="{{ year.name }}">{{ year.name }}</h2>
+ {% for album in year.albums %}
+ {% if album.title %}
+ <a href="{{ album.link }}"><h3>{{ album.title }}</h3></a>
+ {% else %}
+ <a href="{{ album.link }}"><h3>Untitled</h3></a>
{% endif %}
+ <div class="album-container">
+ {% for thumb in album.thumbs %}
+ {% if loop.index >= 4 %}
+ {% break %}
+ {% endif %}
+ <a href="{{ thumb.link }}">
+ <img class="thumbnail" src="{{ thumb.source }}">
+ </a>
+ {% endfor %}
+ </div>
{% endfor %}
- </div>
- {% endfor %}
{% endfor %}
</div>
{% endblock %}