--- title: Main page layout: main groups: - navbar navbar_link: <span class="glyphicon glyphicon-home"></span> 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 <span class="glyphicon glyphicon-chevron-right"></span></a> </div> <div class="text-muted" style="text-align: right; display: table-cell;"> <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 %}