aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/_includes/posts/posts.html
blob: 39dd85828ab0a6a41b6d733fc351a24da744f339 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                                       
                                                                                                                                                                                                                          




                                    
                                      

           
{% if site.posts.size == 0 %}
  <p class="h3">Sorry, no posts have been added yet.</p>
  <hr/>
{% else %}
  {% for post in paginator.posts %}
    <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
    <p class="text-muted">
      <span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ post.date | date: '%-d %B %Y' }}
      {%- if post.category %} in <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a class="category" href="{{ '/' | relative_url }}{{ post.category | slugify: 'pretty' }}/">{{ post.category }}</a>{% endif %}
    </p>
    {{ post.excerpt | markdownify }}
    <hr/>
  {% endfor %}
  <div class="text-center">
    {% include posts/paginator.html %}
  </div>
{% endif %}