aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/posts/index.html
blob: fb21dbf508d843edd6ec28cd9ae468ded8a492c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: Posts
layout: sidebar
groups:
  - navbar
navbar_link: <span class="glyphicon glyphicon-th-list"></span>&nbsp;Posts
---
{% if site.posts.size == 0 %}
  <p class="h3">Sorry, no posts have been added yet.</p>
  <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/">plots</a> which you might want to check out.</p>
  <hr/>
{% else %}
  {% for post in paginator.posts %}
    <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
    <p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}</p>
    <p>{{ post.excerpt }}</p>
    <hr/>
  {% endfor %}
  <div class="text-center">
    {% include common/pagination.html %}
  </div>
{% endif %}