diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-20 15:33:37 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-20 15:33:37 +0000 |
commit | bb81806bb58326f0dadfddc38705f0760c7c8d8f (patch) | |
tree | 177bef5ce2ffec926ff3067bd959b10db77261c7 /templates/includes/recent_entries_template.html | |
parent | ad23af9549c4bc23ab345966d977e1f5d69ac03d (diff) |
improved html structure and tweaked stylesheet accordingly
Diffstat (limited to 'templates/includes/recent_entries_template.html')
-rw-r--r-- | templates/includes/recent_entries_template.html | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/templates/includes/recent_entries_template.html b/templates/includes/recent_entries_template.html index 847dc47..97c05f9 100644 --- a/templates/includes/recent_entries_template.html +++ b/templates/includes/recent_entries_template.html @@ -1,14 +1,11 @@ -{% 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> - <p> - <span class="location">{% if 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>{%endif%}</span> - - <time datetime="{{object.pub_date}}">{{object.pub_date|date:"m/d/y"}}</time> - {%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%} - </p> - <p class="intro hyphenate">{{object.dek|safe}}</p> - <span class="button"><a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">More »</a></span> - </li>{% endfor %} - </ul>
\ No newline at end of file +{% load typogrify %}{% for object in object_list %}<article class="{% cycle 'col1' 'col2' %}"> + <h1><a href="{{object.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|smartypants|widont|safe}}</a></h1> + <p> + <span class="location">{% if 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>{%endif%}</span> + + <time datetime="{{object.pub_date|date:'c'}}">{{object.pub_date|date:"m/d/y"}}</time> + {%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%} + </p> + <p class="intro hyphenate">{{object.dek|safe}}</p> + <span class="button"><a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">More »</a></span> + </article>{% endfor %} |