aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
blob: d7b1b05a81111d1137279d378f715ae0bee4683f (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
---
title: Main page
layout: main
groups:
  - navbar
navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
---
{% if site.posts.size == 0 %}
  <h3>Sorry, no posts have been added yet.</h3>
  <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/plots.html">plots</a> which you might want to check out.</p>
  <hr/>
{% else %}
  {% for post in paginator.posts %}
    <h2>{{ post.title }}</h2>
    <p>{{ post.excerpt }}</p>
    <div style="display: table; width: 100%;">
      <div style="display: table-row;">
        <div style="display: table-cell;">
          <a class="btn btn-primary" href="{{ site.baseurl }}{{ post.url }}">Read More&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a>
        </div>
        <div class="text-muted" style="text-align: right; display: table-cell;">
          &nbsp;<span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}
        </div>
      </div>
    </div>
    <hr/>
  {% endfor %}
  <div class="text-center">
    {% include pagination.html %}
  </div>
{% endif %}