root / cloudcms / templates / content / latest_blog.html @ f6e90a2b
History | View | Annotate | Download (500 Bytes)
1 |
{% load applicationcontent_tags pagination_tags i18n %} |
---|---|
2 |
|
3 |
<div class="section entry-list blog-latest"> |
4 |
<h2>{{ content.title }}</h2> |
5 |
{% for p in posts %} |
6 |
<div class="entry"> |
7 |
<div class="since">{{ p.published_on|timesince }} ago, by {{ p.author }}</div> |
8 |
<h3 class="title"><a href="{{ p.get_absolute_url }}">{{ p.title|safe }}</a></h3> |
9 |
{% if content.display_text %} |
10 |
<p class="content"> |
11 |
{{ p.intro_text|safe|truncatewords_html:10 }} |
12 |
</p>
|
13 |
{% endif %} |
14 |
</div>
|
15 |
{% endfor %} |
16 |
</div>
|