mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-17 16:28:19 +00:00
fda7401e05
for 'All Posts' and tagged categories
59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
---
|
|
layout: base
|
|
title: titles.allposts
|
|
---
|
|
|
|
<h1 class="text-center">{% t page.title %}</h1>
|
|
|
|
<div class="site-wrap">
|
|
<!-- FULL WIDTH BLOCK -->
|
|
<section class="container full">
|
|
<div>
|
|
{% for post in paginator.posts %}
|
|
<div class="post-lead info-block">
|
|
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
|
<p>
|
|
{{ post.summary }}
|
|
</p>
|
|
<p>
|
|
<small>
|
|
{% t blog.author %} {{ post.author }} | {{ post.date | date: "%-d %B %Y" }}<br>
|
|
Category:
|
|
{% for tag in post.tags %}
|
|
<a href="/blog/tags/{{ tag }}.html">{{ tag }}</a>
|
|
{% endfor %}
|
|
</small>
|
|
</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
<!-- END FULL WIDTH BLOCK -->
|
|
</div>
|
|
|
|
|
|
{% if paginator.total_pages > 1 %}
|
|
<div class="text-center page-numbers"><p>
|
|
{% if paginator.previous_page %}
|
|
<a href="{{ paginator.previous_page_path | 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="{{ '/blog' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
|
|
{% else %}
|
|
<a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if paginator.next_page %}
|
|
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next »</a>
|
|
{% else %}
|
|
<span>Next »</span>
|
|
{% endif %}
|
|
</p></div>
|
|
{% endif %}
|