summaryrefslogtreecommitdiff
path: root/templates/photos.html
blob: 8c553390c1a681db01e275456a7be1195eea9943 (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>
  <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 %}