index.html 1.53 KB
Newer Older
1
2
3
4
5
---
layout: default
title: All Blog Posts
---

6
7
<div class="page-title">
  <!-- Icon is based on work by Freepik (http://www.freepik.com) and is licensed under Creative Commons BY 3.0 -->
8
  <img src="//static.getmonero.org/images/icon_blog.svg" class="title-icon"><h2 class="inline">{% t blog.title_1 %} <span class="purple-kicks">{% t blog.title_2 %}</span> {% t blog.title_3 %}</h2>
9
</div>
10

11
{% for post in paginator.posts %}
12
13
  <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
  <blockquote>
14
    {{ post.summary }}
15
16
    <small>{% t blog.tagged %}:
    {% for tag in post.tags %}
17
    [<a href="/blog/tags/{{ tag }}">{{ tag }}]</a>
18
19
20
    {% endfor %}
    </small>
  </blockquote>
21
22
{% endfor %}

23

24
{% if paginator.total_pages > 1 %}
25
<div class="text-center"><h4>
26
27
28
29
30
31
32
33
34
35
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
  {% else %}
    <span>&laquo; Prev</span>
  {% endif %}

  {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <em>{{ page }}</em>
    {% elsif page == 1 %}
Oyvind Kvanes's avatar
Oyvind Kvanes committed
36
      <a href="{{ '/blog' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
37
    {% else %}
Oyvind Kvanes's avatar
Oyvind Kvanes committed
38
      <a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
39
40
41
42
43
44
45
46
    {% endif %}
  {% endfor %}

  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
  {% else %}
    <span>Next &raquo;</span>
  {% endif %}
47
</h4></div>
48
{% endif %}