aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-03-31 02:06:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-03-31 02:06:41 +0300
commit3c7230c191ade30d5b9c8ef02a019ba42ab519f5 (patch)
tree7e85927e11ae604020c547cfe62c3aaa18cfe6f8 /assets
parentc251b0d5a905f19498e1d3312041b794e57fd2f8 (diff)
downloadrevela-3c7230c191ade30d5b9c8ef02a019ba42ab519f5.tar.gz
revela-3c7230c191ade30d5b9c8ef02a019ba42ab519f5.zip
Ready for packagingv0.1.0
* Documentation * make install/uninstall * roscha truthy fix * Other fixes/improvements
Diffstat (limited to 'assets')
-rw-r--r--assets/templates/album.html2
-rw-r--r--assets/templates/base.html6
-rw-r--r--assets/templates/index.html31
3 files changed, 19 insertions, 20 deletions
diff --git a/assets/templates/album.html b/assets/templates/album.html
index 95d9935..856cf63 100644
--- a/assets/templates/album.html
+++ b/assets/templates/album.html
@@ -12,7 +12,9 @@
<p>from <a href="{{ index }}/">{{ title }}</a> </p>
</div>
<div class="gallery-container">
+ {% if album.desc %}
<p>{{ album.desc }}</p>
+ {% endif %}
<div class="album-container">
{% for thumb in album.thumbs %}
<a href="{{ thumb.link }}">
diff --git a/assets/templates/base.html b/assets/templates/base.html
index 1f2d8dc..11ba0ab 100644
--- a/assets/templates/base.html
+++ b/assets/templates/base.html
@@ -3,11 +3,7 @@
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
- <title>
- {% block title %}
- A photo gallery by Yaroslav de la Peña Smirnov
- {% endblock %}
- </title>
+ <title>{% block title %}{{ title }}{% endblock %}</title>
<link rel="stylesheet" href="{{ index }}/css/gallery.css">
</head>
<body>
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 %}