index.html

 1---
 2layout: blog
 3title: "~/"
 4subtitle: "You are, quite obviously, home."
 5description: "Ramblings from a random GNU/Linux user, sysadmin, and professional multi-instrumentalist"
 6cover: /me.png
 7sitemap:
 8priority: 0.9
 9---
10<ul class="list-posts">
11    {% for post in paginator.posts %}
12    <li class="post-teaser">
13        <a href="{{ post.url | prepend: site.baseurl }}">
14            <span class="post-teaser-title">{{ post.title }}</span>
15            <span class="post-teaser-date">{{ post.date | date: "%d %B %Y" }}</span>
16            <p>{{ post.description }}</p>
17        </a>
18        <div class="tags">
19            {% assign words = post.content | number_of_words %} {% if words
20                < 360 %} <a class="meta">Read time: <b>1 minute</b></a>
21            {% else %}
22                <a class="meta">Read time: <b>{{ words | divided_by:150 }} minutes</b></a>
23            {% endif %}
24            {% for tag in post.tags %}
25                <a  class="meta" href="{{ site.baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a>
26            {% endfor %}
27        </div>
28    </li>
29    {% endfor %}
30    <div class="pagination">
31        {% if paginator.previous_page %}
32            <a href="{{ paginator.previous_page_path }}#scroll" class="previous"><i class="fa fa-toggle-left"></i></a>
33        {% else %}
34        {% endif %}
35            <span class="page-num">Page {{ paginator.page }}/{{ paginator.total_pages }}</span>
36        {% if paginator.next_page %}
37            <a href="{{ paginator.next_page_path }}#scroll" class="next"><i class="fa fa-toggle-right"></i></a>
38        {% else %}
39        {% endif %}
40    </div>
41</ul>