Newer
Older
<h2>{{ page.section }}</h2>
<ul>
{% for link in page.pages %}
<li>
<a href="{{ link.href | relative_url }}"
class="{% if link.active %}active {% endif %}{% if link.smaller %}smaller {% endif %}">
{{ link.title }}
</a>
</li>
<header>
<h1>
ELIXIR.LU news
</h1>
<hr />
</header>
{% for post in paginator.posts %}
<div class="post">
<a class="post-title" href="{{ post.url | relative_url }}">{{ post.title }}</a>
<span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span>
{{ post.content | strip_html | truncatewords: 52 }}
</div>
</div>
{% endfor %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="previous">
Previous
</a>
{% endif %}
<span class="page_number ">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="next">Next</a>
{% endif %}
</div>
</div>
</article>