Revision 8a4135b4 cloudcmsblog/templates/cloudcmsblog/archive.html
b/cloudcmsblog/templates/cloudcmsblog/archive.html | ||
---|---|---|
6 | 6 |
<ul> |
7 | 7 |
{% for entry in entries %} |
8 | 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> |
|
9 |
|
|
10 |
|
|
11 |
<p class="date">{{ entry.published_on|date:"d M Y"|upper }}</p> |
|
12 |
<h2> |
|
13 |
<a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a> |
|
14 |
</h2> |
|
15 |
{% if entry.image %} |
|
16 |
<a href="{{ entry.get_absolute_url }}"> |
|
17 |
<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" /> |
|
18 |
</a> |
|
19 |
{% endif %} |
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
{% if entry.intro_text %} |
|
24 |
<div class="intro-content"> |
|
25 |
{{ entry.intro_text|safe|truncatewords:100 }} |
|
26 |
{% if entry.intro_text|safe|wordcount > 100 %} |
|
27 |
<a href="{{ entry.get_absolute_url }}">{% trans "read more" %}</a> |
|
28 |
{% endif %} |
|
29 |
</div> |
|
30 |
{% endif %} |
|
31 |
|
|
31 | 32 |
|
32 | 33 |
|
33 | 34 |
|
34 |
</div> |
|
35 |
|
|
35 | 36 |
<p class="info"> |
36 | 37 |
{% trans "posted by" %} |
37 | 38 |
<span class="author">{{ entry.author }}</span> |
Also available in: Unified diff