summaryrefslogtreecommitdiff
path: root/plt/page_nav.html
blob: d182e537f28518fdf4e9a96d8accb8df2a62603d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{%macro print(page, config, div_class_name)%}
<div class="{{div_class_name}}">
  {%if page.next is not none%}
    <span class="next">
      <a href="{{page.next.url}}" alt="Next">
        <i class="fas fa-arrow-left" alt="Arrow left"></i>
        <span>Next</span>
      </a>
    </span>
  {%endif%}

    <span class="index">
      <a href="{{config['url']['main']}}" alt="Index">
        <i class="fas fa-home" alt="Home"></i>
        <span>Index</span>
      </a>
    </span>

  {%if page.previous is not none%}
    <span class="previous">
      <a href="{{page.previous.url}}" alt="Previous">
        <i class="fas fa-arrow-right" alt="Arrow right"></i>
        <span>Previous</span>
      </a>
    </span>
  {%endif%}
</div>
{%endmacro%}