diff options
author | Nikolas <nikolas@boutalas.com> | 2024-10-28 18:16:08 +0200 |
---|---|---|
committer | Nikolas <nikolas@boutalas.com> | 2024-10-28 18:16:08 +0200 |
commit | 9d114262053fe91bca8077773ed5908e1d9e8696 (patch) | |
tree | 594023552c4e479f3f3fb94dba9b0b3b2c5628ac /templates/photos.html | |
parent | d327a8f7e51ac3e6be95f7a7b9204343c9553899 (diff) |
index: add photos section
Diffstat (limited to 'templates/photos.html')
-rw-r--r-- | templates/photos.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/photos.html b/templates/photos.html new file mode 100644 index 0000000..8c55339 --- /dev/null +++ b/templates/photos.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ section.title }}</h1> +{% for page in paginator.pages %} +<figure> + <a {% if page.content %} href="{{ page.permalink }}" {% endif %}> + <img + alt="{{page.extra.caption}}" + src="{{ page.permalink }}/{{ page.extra.file_name }}" + /> + </a> + <figcaption>{{page.extra.caption}}</figcaption> +</figure> +{% endfor %} {% if paginator.previous or paginator.next%} +<div class="row"> + <a class="center" href="{{ paginator.previous }}">Previous</a> + <span class="center">{{ paginator.current_index }}</span> + <a class="center" href="{{ paginator.next }}">Next</a> +</div> +{% endif %} {% endblock body %} |