summaryrefslogtreecommitdiffstats
path: root/blog/index.html
blob: aaf8fbd2473198e764c23e000e21accbf67a629f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
layout: default
title: titles.home
hidden: true
---

{% tf home/intro.md %}

<section id="news" class="wide">
  <h2>{% t home.latest_news %}</h2>
  {% for p in paginator.posts %}
    <article>
      <header>
        <date>{{ p.date | date_to_string }}</date>
        <h1>
            <a href="{{ p.url }}">{{ p.title }}</a>
        </h1>
      </header>
      <section>
        {{ p.excerpt }}
      </section>
    </article>
  {% endfor %}
</section>

{% if site.links %}
  <section id="links">
    <h2>{% t home.links %}</h2>
  </section>
{% endif %}

<!-- Pagination links -->
<div class="pagination">
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">{% t home.prev_page %}</a>
  {% else %}
    <span class="previous">{% t home.prev_page %}</span>
  {% endif %}
  <span class="page_number ">{% t home.page_no %} {{ paginator.page }} / {{ paginator.total_pages }}</span>
  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">{% t home.next_page %}</a>
  {% else %}
    <span class="next ">{% t home.next_page %}</span>
  {% endif %}
</div>