paginated_left_col.html 1.36 KB
Newer Older
Jacek Lebioda's avatar
Jacek Lebioda committed
1
2
3
4
5
6
7
---
layout: default
---

<article>

    <div id="left-column">
Jacek Lebioda's avatar
Jacek Lebioda committed
8
9
10
11
12
13
        <h2>{{ page.section }}</h2>
        <ul>
        {% for link in page.pages %}
            <li><a href="{{ site.baseurl }}{{ link.href }}" {% if link.active %}class="active"{% endif %}>{{ link.title }}</a></li>
        {% endfor %}
        </ul>
Jacek Lebioda's avatar
Jacek Lebioda committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    </div>

    <div>
        <header>
            <h1>
                ELIXIR.LU news
            </h1>
            <hr />
        </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
28
29
          <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span>

Jacek Lebioda's avatar
Jacek Lebioda committed
30
          <div class="content">
Jacek Lebioda's avatar
Jacek Lebioda committed
31
            {{ post.content | truncate: 220 }}
Jacek Lebioda's avatar
Jacek Lebioda committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
          </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>
    </div>
</article>