summaryrefslogtreecommitdiff
path: root/_layouts/journal.liquid
blob: 01d0fd1e1e2a96b7540bedc3cc1ff0b16d4fe7a0 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html>
    <head>
        {% include "head.liquid" %}
    </head>

    <body>
        <!-- begin hero -->
        <section class="
                        hero
                        is-primary
                        ">
            <!-- begin hero head -->
            <div class="hero-head">
                {% include "nav.liquid" %}
            </div>
            <!-- end hero head -->

            <!-- begin hero body -->
            <div class="hero-body">
                <div class="container">
                    <h1 class="title">
                        {{ page.title }}
                    </h1>
                </div>
            </div>
            <!-- end hero body -->

        </section>
        <!-- end hero -->

        <!-- begin main content -->
        <section class="section">
            <div class="container">

                <div class="content">
                    {{ page.content }}
                </div>

            </div>
        </section>
        <!-- end main content -->

        <!-- begin blog posts -->
        <section class="section">
            <div class="container">
                <div class="columns">

                    <!-- begin short post list -->
                    <div class="column is-narrow">
                        <aside class="menu">
                            <p class="menu-label">
                            All Posts 
                            </p>

                            <ul class="menu-list">
                                {% for post in collections.posts.pages %}
                                    <li>
                                        <a href="{{ post.permalink }}">
                                            {{ post.title }}
                                            {% if post.published_date %}
                                                <span class="has-text-light">
                                                {{ post.published_date | date: "%e %b %Y" }}
                                                </span>
                                            {% endif %}
                                        </a>
                                    </li>
                                {% endfor %}
                            </ul>
                        </aside>
                    </div>
                    <!-- end short post list -->

                    <!-- begin long post list -->
                    <div class="column">
                    {% for i in (1..20) %}
                        {% for post in collections.posts.pages %}
                            <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>
                        {% endfor %}
                {%endfor%}
                    </div>
                    <!-- end long post list -->

                </div>
            </div>
        </section>
        <!-- end blog posts -->

        <footer class="footer">
            {% include "footer.liquid" %}
        </footer>
    </body>

</html>