mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-14 20:36:34 +02:00
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
|
---
|
||
|
layout: default
|
||
|
title: All Blog Posts
|
||
|
---
|
||
|
|
||
|
<!-- This loops through the paginated posts -->
|
||
|
{% for post in paginator.posts %}
|
||
|
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
|
||
|
<p class="author">
|
||
|
<span class="date">{{ post.date }}</span>
|
||
|
</p>
|
||
|
<div class="content">
|
||
|
{{ post.summary }}
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
|
||
|
{% if paginator.total_pages > 1 %}
|
||
|
<div class="pagination">
|
||
|
{% if paginator.previous_page %}
|
||
|
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
||
|
{% else %}
|
||
|
<span>« Prev</span>
|
||
|
{% endif %}
|
||
|
|
||
|
{% for page in (1..paginator.total_pages) %}
|
||
|
{% if page == paginator.page %}
|
||
|
<em>{{ page }}</em>
|
||
|
{% elsif page == 1 %}
|
||
|
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
|
||
|
{% else %}
|
||
|
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{% if paginator.next_page %}
|
||
|
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
||
|
{% else %}
|
||
|
<span>Next »</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endif %}
|