aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
blob: d25ef7ed920f4ddb5f9253c62c79a896583e1c2f (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
---
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, there're no posts yet.</h3>
  <hr/>
{% else %}
  {% for post in paginator.posts %}
    <h2>{{ post.title }}</h2>
    <p>{{ post.excerpt | stip_html }}</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 %}