|
1 {% extends "base.html" %} |
|
2 |
|
3 {% block sidecontent %} |
|
4 <h3>Recent articles</h3> |
|
5 <ol class="parts"> |
|
6 |
|
7 {% set cnt = 0 %} |
|
8 {% for article in articles_page.object_list %} |
|
9 {% if cnt < 3 %} |
|
10 <li> |
|
11 <a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a> |
|
12 </li> |
|
13 |
|
14 {% endif %} |
|
15 {% set cnt = cnt +1 %} |
|
16 {% endfor %} |
|
17 </ol> |
|
18 <a href="{{ SITEURL }}/archives.html">All articles...</a> |
|
19 {% endblock %} |
|
20 |
|
21 {% block content %} |
|
22 |
|
23 {% block content_title %} |
|
24 {% endblock %} |
|
25 |
|
26 |
|
27 {% set cnt = 0 %} |
|
28 {% for article in articles_page.object_list %} |
|
29 {% if cnt < 2 %} |
|
30 {% if articles_page.has_previous() %} |
|
31 <!-- pagine successive --> |
|
32 {% if cnt == 0 %} |
|
33 <ul class="medium-block-grid-2"> |
|
34 {% endif %} |
|
35 <li> |
|
36 <div class="sec-article"> |
|
37 <div class="read-more">{{ article.locale_date}}</div> |
|
38 <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> |
|
39 <p> |
|
40 {{ article.summary }} |
|
41 </p> |
|
42 |
|
43 </div> |
|
44 </li> |
|
45 |
|
46 {% else %} |
|
47 <!-- prima pagina --> |
|
48 <div class="main-article"> |
|
49 <div class="read-more">{{ article.locale_date}}</div> |
|
50 |
|
51 <h2><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h2> |
|
52 <p> |
|
53 {{ article.summary }} |
|
54 </p> |
|
55 |
|
56 |
|
57 </div> |
|
58 {% if cnt == 1 %} |
|
59 <ul class="medium-block-grid-2"> |
|
60 {% endif %} |
|
61 {% endif %} |
|
62 {% else %} |
|
63 <li> |
|
64 <div class="sec-article"> |
|
65 <div class="read-more">{{ article.locale_date}}</div> |
|
66 <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> |
|
67 <p> |
|
68 {{ article.summary }} |
|
69 </p> |
|
70 |
|
71 </div> |
|
72 </li> |
|
73 {% endif %} |
|
74 {% set cnt = cnt +1 %} |
|
75 {% endfor %} |
|
76 </ul> |
|
77 {% if articles_page.has_other_pages() %} |
|
78 <div class="pagination-block"> |
|
79 {% include 'pagination.html' %} |
|
80 </div> |
|
81 {% endif %} |
|
82 |
|
83 {% endblock content %} |
|
84 <!-- END CONTENT --> |