aboutsummaryrefslogtreecommitdiffstats
path: root/SoMA/templates/index.html
blob: 76579b53f86cb3b95d4379418dc752bb7a91d813 (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
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}        
{% if articles %}
    {% for article in articles_page.object_list %}        

        {# First item #}
    
            <aside id="featured">
                <div class="body">
                    <article>
                        <h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
                        {% include 'article_infos.html' %}{{ article.content }}
                    </article>
                {% if loop.length == 1 %}
                    {% include 'pagination.html' %}
                {% endif %}
                </div>
            </aside><!-- /#featured -->
            
        
    {% endfor %}
{% else %}
<section id="content" >
    <div class="body">
    <h2>Pages</h2>
        {% for page in PAGES %}
            <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
        {% endfor %}
    </div>
</section>
{% endif %}
{% endblock content %}