monero-site/blog/index.html

60 lines
1.9 KiB
HTML
Raw Normal View History

2017-07-04 09:00:32 +03:00
---
layout: base
title: titles.allposts
2017-07-04 09:00:32 +03:00
---
<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>{% unless forloop.last %},{% endunless %}
{% endfor %}
</small>
</p>
</div>
{% endfor %}
</div>
</section>
<!-- END FULL WIDTH BLOCK -->
</div>
2017-07-04 09:00:32 +03:00
{% if paginator.total_pages > 1 %}
<div class="text-center page-numbers"><p>
2017-07-04 09:00:32 +03:00
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
2017-07-04 09:00:32 +03:00
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
2020-05-14 15:35:44 +03:00
<a href="{{ site.baseurl_root }}/blog">{{ page }}</a>
2017-07-04 09:00:32 +03:00
{% 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 &raquo;</a>
2017-07-04 09:00:32 +03:00
{% else %}
<span>Next &raquo;</span>
{% endif %}
</p></div>
2017-11-20 15:36:09 +02:00
{% endif %}