xonecas.io
2495
Xg

xonecas.github.com / files

xonecas.github.com / index.html

896 bytes
1---
2layout: default
3title: Home
4---
5
6<div class="posts">
7  {% for post in paginator.posts %}
8  <div class="post">
9    <h1 class="post-title">
10      <a href="{{ post.url }}">
11        {{ post.title }}
12      </a>
13    </h1>
14
15    <span class="post-date">{{ post.date | date_to_string }}</span>
16
17    {{ post.content }}
18  </div>
19  {% endfor %}
20</div>
21
22<div class="pagination">
23  {% if paginator.next_page %}
24    <a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a>
25  {% else %}
26    <span class="pagination-item older">Older</span>
27  {% endif %}
28  {% if paginator.previous_page %}
29    {% if paginator.page == 2 %}
30      <a class="pagination-item newer" href="/">Newer</a>
31    {% else %}
32      <a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a>
33    {% endif %}
34  {% else %}
35    <span class="pagination-item newer">Newer</span>
36  {% endif %}
37</div>