aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/jekyll-theme/posts/feed.html
blob: 5bcf14dd4214ce3a43d88a1f3e0286322a63cbc3 (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
{% if site.posts.size == 0 %}
  <p class="h3">Sorry, no posts have been added yet.</p>
{% else %}
  {% for post in paginator.posts %}
    <a href="{{ post.url | relative_url }}" class="feed-entry">
      <div class="post-header">
        <h3>{{ post.title }}</h3>
        <div class="post-date">
          <p class="text-muted">
            {%- comment -%}
              Collapse the Liquid whitespace here, so that no extra spaces
              between <span>s are introduced.
            {%- endcomment -%}
            {%- if post.category -%}
              <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<span class="category">{{ post.category }}</span>
            {%- endif -%}
            <span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
          </p>
        </div>
      </div>
      <div class="text-muted">{{ post.excerpt | markdownify }}</div>
    </a>
  {% endfor %}
  {% include jekyll-theme/posts/paginator.html %}
{% endif %}