summaryrefslogtreecommitdiff
path: root/theme/cccevents/templates/index.html
blob: b1e1e56ac622c6c8bf73ec6b27c710a6096595bb (plain)
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
{% extends "base.html" %}

{% block content_title %}{% endblock %}

{% block content %}
{% if articles %}
    {% for article in articles_page.object_list %}
            <article class="hentry">
                <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>

                <div class="entry-content">
                    {{ article.summary }}
                    <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
                </div><!-- /.entry-content -->
            </article>
    {% endfor %}
{% else %}
<section id="content" class="body">
    <header>
        <h1>Pages</h1>
    </header>
    <div>
        <ul>
            {% for page in PAGES %}
            <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
            {% endfor %}
        </ul>
    </div><!-- /.entry-content -->
</section>
{% endif %}
{% endblock %}