summaryrefslogtreecommitdiff
path: root/blog/plt/page_nav.html
blob: b15b9ebba0cf02d8198eb139f9fa323f8dacce04 (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="page-nav">
  {%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}}" 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%}