aboutsummaryrefslogtreecommitdiffstats
path: root/bricks/templates/index.html
blob: e0c9b593239621325034e41e23aef7f839c78871 (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
{% extends "base.html" %}
{% block content %}

{% block content_title %}
{% endblock %}


{% set cnt = 0 %}

{% for article in articles_page.object_list %}
    {% if cnt < 2 %}
        {% if articles_page.has_previous() %}
            <!-- pagine successive -->
            {% if cnt == 0 %}
            <ul class="medium-block-grid-2">
            {% endif %}
            <li>
            <div class="sec-article">
                 <div class="read-more">{{ article.locale_date}}</div>
                 <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
                <p>
                {{ article.summary }}            
                </p>
                
            </div>
            </li>

        {% else %}
            <!-- prima pagina -->
            <div class="main-article">
                <div class="read-more">{{ article.locale_date}}</div>
 
                <h2><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h2>
                <p>
                {{ article.summary }}            
                </p>
                   

            </div>
            {% if cnt == 1 %}
            <ul class="medium-block-grid-2">
            {% endif %}
        {% endif %}
    {% else %}
        <li>
        <div class="sec-article">
             <div class="read-more">{{ article.locale_date}}</div>
             <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
            <p>
            {{ article.summary }}            
            </p>
            
        </div>
        </li>
    {% endif %}    
    {% set cnt = cnt +1 %}
{% endfor %}
</ul>
{% if articles_page.has_other_pages() %}
<div class="pagination-block">
    {% include 'pagination.html' %}
</div>
{% endif %}

{% endblock content %}
<!-- END CONTENT -->