aboutsummaryrefslogtreecommitdiff
path: root/assets/templates/index.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-12-16 02:04:43 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-12-16 02:04:43 +0300
commit9297781c79dbfe68a817474d0395001fd9746770 (patch)
treea1ef30b48f1c1c453ba37f9a2126fa58550f4b29 /assets/templates/index.html
parent0e2f57884b494aa676686db132994a3df2b73c70 (diff)
downloadrevela-9297781c79dbfe68a817474d0395001fd9746770.tar.gz
revela-9297781c79dbfe68a817474d0395001fd9746770.zip
Added basic builtin templates and css
Diffstat (limited to 'assets/templates/index.html')
-rw-r--r--assets/templates/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/assets/templates/index.html b/assets/templates/index.html
new file mode 100644
index 0000000..61160a5
--- /dev/null
+++ b/assets/templates/index.html
@@ -0,0 +1,33 @@
+{% 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 %}
+ <a href="{{ thumb.link }}">
+ <img class="thumbnail" src="{{ thumb.source }}">
+ </a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+ {% endfor %}
+</div>
+{% endblock %}