45 lines
1 KiB
HTML
45 lines
1 KiB
HTML
---
|
|
layout: default
|
|
title: News
|
|
metasub: news
|
|
---
|
|
|
|
<h2>News <a title="Atom" href="/{{ page.metasub }}/atom.xml"><span class="feed">Atom</span></a></h2>
|
|
|
|
{% for post in paginator.posts %}
|
|
<h3><a href="{{ post.url }}">{{ post.date | date_to_string }} - {{ post.title }}</a></h3>
|
|
|
|
{{ post.content }}
|
|
{% endfor %}
|
|
|
|
<div id="post-pagination" class="pagination">
|
|
{% if paginator.previous_page %}
|
|
{% if paginator.previous_page == 1 %}
|
|
<a href="/news/">Previous</a>
|
|
{% else %}
|
|
<a href="{{ paginator.previous_page_path }}/">Previous</a>
|
|
{% endif %}
|
|
{% else %}
|
|
<span>Previous</span>
|
|
{% endif %}
|
|
|
|
{% if paginator.page == 1 %}
|
|
<span class="current-page">1</span>
|
|
{% else %}
|
|
<a href="/news/">1</a>
|
|
{% endif %}
|
|
|
|
{% for count in (2..paginator.total_pages) %}
|
|
{% if count == paginator.page %}
|
|
<span class="current-page">{{ count }}</span>
|
|
{% else %}
|
|
<a href="/news/page{{ count }}/">{{ count }}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if paginator.next_page %}
|
|
<a href="{{ paginator.next_page_path }}/">Next</a>
|
|
{% else %}
|
|
<span>Next</span>
|
|
{% endif %}
|
|
</div>
|