root / cloudcmsblog / templates / cloudcmsblog / archive.html @ 8dd49103
History | View | Annotate | Download (1.7 kB)
1 |
{% load applicationcontent_tags pagination_tags i18n %} |
---|---|
2 |
|
3 |
{% autopaginate entries ENTRIES_PER_PAGE %} |
4 |
{% fragment request "maincol" %} |
5 |
<div class="posts"> |
6 |
<ul>
|
7 |
{% for entry in entries %} |
8 |
<li>
|
9 |
<div class="clearfix"> |
10 |
<div class="img-div"> |
11 |
<p>{{ entry.published_on|date:"d M Y"|upper }}</p> |
12 |
{% if entry.image %} |
13 |
<a href="{{ entry.get_absolute_url }}"> |
14 |
<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" /> |
15 |
</a>
|
16 |
{% endif %} |
17 |
</div>
|
18 |
<div class="txt"> |
19 |
<h3>
|
20 |
<a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a> |
21 |
</h3>
|
22 |
{% if entry.intro_text %} |
23 |
<div class="intro-content"> |
24 |
{{ entry.intro_text|safe|truncatewords:100 }} |
25 |
{% if entry.intro_text|safe|wordcount > 100 %}
|
26 |
<a href="{{ entry.get_absolute_url }}">{% trans "read more" %}</a> |
27 |
{% endif %} |
28 |
</div>
|
29 |
{% endif %} |
30 |
</div>
|
31 |
|
32 |
|
33 |
|
34 |
</div>
|
35 |
<p class="info"> |
36 |
{% trans "posted by" %} |
37 |
<span class="author">{{ entry.author }}</span> |
38 |
{% trans "on" %} <span class="date">{{ entry.published_on }}</span>, |
39 |
{% trans "filed under" %} |
40 |
{% for c in entry.categories.all %} |
41 |
<a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}"> |
42 |
{{ c|lower }} |
43 |
</a> {% if not forloop.last %},{% endif %}
|
44 |
{% endfor %} |
45 |
</p>
|
46 |
</li>
|
47 |
{% endfor %} |
48 |
</ul>
|
49 |
</div>
|
50 |
<div class="pages"> |
51 |
{% paginate %} |
52 |
</div>
|
53 |
{% endfragment %} |