summaryrefslogtreecommitdiff
path: root/templates/photos.html
blob: bad4589678e39482f4c64d07688f88ffdad3d2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "base.html" %} {% block body %}
<h1>{{ section.title }}</h1>
{% for page in paginator.pages %}
<figure class="center">
  <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 %}