summaryrefslogtreecommitdiff
path: root/_layouts/post.liquid
blob: d94591733170d38653def2e95e08ccc034c2e00b (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
<!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">
                    <!-- begin title and date -->
                    <h1 class="title">
                        {{ page.title }}
                    </h1>

                    <h2 class="subtitle">
                        {% if page.published_date %}
                            {{ page.published_date | date: "%A, %b %e, %Y" }}
                        {% else %}
                            Unpublished!
                        {% endif %}
                    </h2>
                    <!-- end title and date -->

                    <!-- begin categories and tags -->
                    <p>
                    {% if page.categories %}
                        Categories: 
                        {% for category in page.categories %}
                            <span class="tag is-rounded">
                                {{ category | downcase }}
                            </span>
                        {% endfor %}
                    {% endif %}

                    {% if page.tags %}
                        Tags: 
                        {% for tag in page.tags %}
                            <span class="tag is-rounded">
                                #{{ tag | downcase }}
                            </span>
                        {% endfor %}
                    {% endif %}
                    </p>
                    <!-- end categories and tags -->

                </div>
            </div>
            <!-- end hero body -->

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

        <!-- begin main content -->
        <section class="section">
            <div class="container">
                <div class="columns">
                    <div class="column">
                        <div class="content">
                            {{ page.content }}
                        </div>
                    </div>

                    <div class="column is-narrow">
                        {% include posts-similar.liquid %}
                    </div>
                </div>
            </div>
        </section>
        <!-- end main content -->

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

</html>