summaryrefslogtreecommitdiff
path: root/blog/plt/page_nav.html
blob: 4d26ae32503db89949d50bfa041e9efa878f5f8d (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.get("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%}