post-card.html 799 Bytes
Newer Older
Huste, Tobias's avatar
Huste, Tobias committed
1
2
3
{% assign post = include.post %}
<div class="frontpage-card">
    <div class="card-body">
4
        {% if post.title %}
Huste, Tobias's avatar
Huste, Tobias committed
5
6
7
        <a href="{{ post.url | relative_url }}">
            <h3 class="card-title">{{ post.title }}</h3>
        </a>
8
9
10
11
12
13
14
        {% else %}
        <!--
            WARNING: frontpage/post-card.html was include, but no post title
                     is defined.
        -->
        {% endif %}
        {% if post.date %}
Huste, Tobias's avatar
Huste, Tobias committed
15
16
17
        <div>
            <i class="fas fa-calendar-day" aria-hidden="true"></i> {{ post.date | date_to_string }}
        </div>
18
        {% endif %}
Huste, Tobias's avatar
Huste, Tobias committed
19
20
21
22
23
24
25
        <div>
        {% for category in post.categories %}
            <span class="badge badge-secondary" aria-hidden="true">{{ category | upcase }}</span>
        {% endfor %}
        </div>
    </div>
</div>