aboutsummaryrefslogtreecommitdiffstats
path: root/ops/templates/page.html
blob: ca7946567659efd87cedbbe7064d0d132a9dcb03 (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
{% extends 'base.html' %}

{% block title %}{{ SITENAME }} - {{ page.title }} {% endblock %}

{% block container %}
    {% if page.title == 'blog' %}
        <section id="content">
            <header class="header">
                <h2 class="blogpost-title">Articles in {{ AUTHOR }}'s blog</h2>
            </header>
            <dl>
                {% for category,articles in categories %}
                    <h3>
                        {{ category }}
                    </h3>
                    {% for article in articles %}
                        <dd>
                            <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
                        </dd>
                    {% endfor %}
                {% endfor %}
            </dl>
        </section>
        <br/><br/><br/>
    {% else %}
        <section id="content">
            <header class="header">
                <h2 class="blogpost-title">{{ page.title }}</h2>
            </header>
            {{ page.content }}
        </section>
        <br/> <br/> <br/>
    {% endif %}
{% endblock %}

{% block footer %}
    {% include '_includes/footer.html' %}
{% endblock %}