blob: 29ed3d8142a03952bf096cb8ff00d2024a7c6d0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{% load typogrify %}
<ul>{% for object in object_list %}
<li class="{% cycle 'col1' 'col2' %}">
<h3><a href="{{object.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|smartypants|widont|safe}}</a></h3>
{%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%}
<p>
<span class="location">{% ifequal object.location.state.country.name "United States" %}{{object.location.name|smartypants|safe}}, <a href="/writing/united-states/1/" title="travel writing from the United States">{{object.location.state.name}}</a>{%else%}{{object.location.name|smartypants|safe}}, <a href="/writing/{{object.location.state.country.slug}}/1/" title="travel writing from {{object.location.state.country.name}}">{{object.location.state.country.name}}</a>{%endifequal%}</span>
<time datetime="{{object.pub_date}}">{{object.pub_date|date:"m/d/y"}}</time>
</p>
<p class="intro">{{object.dek|safe}} <a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">Read it »</a></p>
</li>{% endfor %}
</ul>
|