aboutsummaryrefslogtreecommitdiff
path: root/assets/templates/index.html
blob: bf62607152c3c8e07839d78693518896d6547c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "base.html" %}
{% block content %}
<div class="header-container">
	<h1>{{ title }}</h1>
</div>
<div class="gallery-container">
	<p>
	Jump to year: 
	{% for year in years %}
	<a href="#{{ year.name }}">{{ year.name }}</a>
	{% 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 %}
				{% break %}
				{% endif %}
				<a href="{{ thumb.link }}">
					<img class="thumbnail" src="{{ thumb.source }}">
				</a>
				{% endfor %}
			</div>
		{% endfor %}
	{% endfor %}
</div>
{% endblock %}