jrgnsn.net/index.html -rw-r--r-- 1.3 KiB View raw
                                                                                
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
layout: page
---

<div class="media">
  <article class="post-stub">
  {% for post in paginator.posts %}
  {% include post-stub.html post=post %}
  {% endfor %}
  </article>
  <div class="pagination-container">
  {% if paginator.previous_page %}

  <div class="pull-left">
    <a href="{{paginator.previous_page_path}}" class="btn">
      <span class="icon">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"/></svg>
      </span>
      Page {{paginator.previous_page}}
    </a>
  </div>
  {% endif %}

  {% if paginator.next_page %}
  <div class="pull-right">
    <a href="{{paginator.next_page_path}}" class="btn">
      Page {{paginator.next_page}}
      <span class="icon">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>
      </span>
    </a>
  </div>
  {% endif %}

  <div class="pull-center">
    {% assign x = paginator.page %}
    {% assign y = paginator.total_pages %}
    <p>
      Page {{ x }} of {{ y }}
    </p>
  </div>
</div>
</div>