diff options
Diffstat (limited to 'templates/archives/topics.html')
-rw-r--r-- | templates/archives/topics.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/archives/topics.html b/templates/archives/topics.html new file mode 100644 index 0000000..2e4802e --- /dev/null +++ b/templates/archives/topics.html @@ -0,0 +1,39 @@ +{% extends 'base.html' %} +{% load typogrify %} +{% load pagination_tags %} + +{% block pagetitle %}Luxagraf | {% if region %}Travel Writing from {{region.name|title|smartypants|safe}}{%else%}Travel Writing from Around the World {%endif%}{% endblock %} +{% block metadescription %}{% if region %}Travel writing, essays and dispatches from {{region.name|title|smartypants|safe}}{%else%}Travel writing, essays and dispatches from around the world{%endif%}{% endblock %} +{%block bodyid%}id="writing"{%endblock%} + + +{% block primary %} + <article> + <h1>{{topic.header}}</h1> + <span class="all-link"><a href="/writing/1/" title="see all writing">{ View All Writing }</a></span> + <ul id="writing-archive"> + {% autopaginate object_list 10 %} + {% for object in object_list %} + <li> + <h3 class="title"><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%} + + <time datetime="{{object.pub_date}}">{{object.pub_date|date:"F j, Y"}}</time> • <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> + + <p class="intro">{{object.dek|safe}} <a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">Read it »</a></p> + + + </li> + {% endfor %} + </ul> + + <section id="pagination"> + <ul>{% paginate %} + </ul> + </section> + </article> +{% endblock %} + + + |