diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
commit | 9297781c79dbfe68a817474d0395001fd9746770 (patch) | |
tree | a1ef30b48f1c1c453ba37f9a2126fa58550f4b29 /assets/templates/album.html | |
parent | 0e2f57884b494aa676686db132994a3df2b73c70 (diff) | |
download | revela-9297781c79dbfe68a817474d0395001fd9746770.tar.gz revela-9297781c79dbfe68a817474d0395001fd9746770.zip |
Added basic builtin templates and css
Diffstat (limited to 'assets/templates/album.html')
-rw-r--r-- | assets/templates/album.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assets/templates/album.html b/assets/templates/album.html new file mode 100644 index 0000000..95d9935 --- /dev/null +++ b/assets/templates/album.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block content %} +<div class="header-container"> + <h1> + <a href="{{ index }}/#{{ album.year }}">{{ album.year }}</a> + {% if album.title %} + {{ album.title }} + {% else %} + Untitled + {% endif %} + </h1> + <p>from <a href="{{ index }}/">{{ title }}</a> </p> +</div> +<div class="gallery-container"> + <p>{{ album.desc }}</p> + <div class="album-container"> + {% for thumb in album.thumbs %} + <a href="{{ thumb.link }}"> + <img class="thumbnail" src="{{ thumb.source }}"> + </a> + {% endfor %} + </div> +</div> +{% endblock %} |