summaryrefslogtreecommitdiff
path: root/_includes/post-card.liquid
blob: 2f79eadd7842e069133936bc3fe02f43301936fd (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
<div class="card">
    <header class="card-header">
        <p class="card-header-title">
        {% if post.published_date %}
            {{ post.published_date | date: "%A, %b %e, %Y" }}
        {% endif %}
        </p>
    </header>
    <div class="card-content">
        <p class="subtitle">
        {{ post.title }}
        </p>
        <div class="content">
            {{ post.excerpt | truncatewords: 50 }}
        </div>
    </div>
    <footer class="card-footer">
        <a class="card-footer-item"
           href="/{{ post.permalink }}"
           >
           Continue reading...
        </a>
            <a class="card-footer-item"
               href="/{{ post.permalink }}"
               target="_blank"
               >
               Read in new tab...
            </a>
    </footer>
</div>