summaryrefslogtreecommitdiff
path: root/_includes/post-list.liquid
blob: 2edc1421a32477181c5e542532c58aec6f794ef0 (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
31
32
33
34
35
36
37
38
39
40
41
<div class="columns is-centered is-multiline">
    <p class="menu-label has-text-centered">
    Recent Posts
    </p>

    {% assign posts = collections.posts.pages %}
    {% for post in posts %}
        <div class="column is-full">
            <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.content | truncatewords: 50 }}
                    </div>
                </div>
                <footer class="card-footer">
                    <a class="card-footer-item"
                       href="{{ post.permalink }}"
                       >
                       Read more...
                    </a>
                        <a class="card-footer-item"
                           href="{{ post.permalink }}"
                           target="_blank"
                           >
                           Open in new tab...
                        </a>
                </footer>
            </div>
        </div>
    {% endfor %}
</div>