paginated.html 1.12 KB
Newer Older
Jacek Lebioda's avatar
Jacek Lebioda committed
1 2 3 4
---
layout: default
---

5
<article>
Jacek Lebioda's avatar
Jacek Lebioda committed
6

7
    <div id="left-column">
Jacek Lebioda's avatar
Jacek Lebioda committed
8
    </div>
9 10 11 12 13 14

    <div>
        <header>
            <h1>
                ELIXIR.LU news
            </h1>
15
            <hr />
16 17 18 19 20 21
        </header>

        {% for post in paginator.posts %}
        <div class="post">
          <a class="post-title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>

Jacek Lebioda's avatar
Jacek Lebioda committed
22 23
          <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span>

24
          <div class="content">
Jacek Lebioda's avatar
Jacek Lebioda committed
25
            {{ post.content | truncate: 220 }}
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
          </div>
        </div>
        {% endfor %}

        <div class="pagination">
          {% if paginator.previous_page %}
            <a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="previous">
              Previous
            </a>
          {% endif %}

          <span class="page_number ">
            Page: {{ paginator.page }} of {{ paginator.total_pages }}
          </span>

          {% if paginator.next_page %}
            <a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="next">Next</a>
          {% endif %}
        </div>
Jacek Lebioda's avatar
Jacek Lebioda committed
45 46
    </div>
</article>