summaryrefslogtreecommitdiff
path: root/templates/archives/writing.html
blob: f6cc33eed97b97210e9d3926f550f2e37d0f03af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends 'base_single_col.html' %}
{% load typogrify %}
{% load pagination_tags %}

{% block pagetitle %}Luxagraf | {% if region %}Writings from {{region.name|title|smartypants|safe}}{%else%}Writing Archive {%endif%}{% endblock %}
{% block metadescription %}Writing Archive, Luxagraf{% endblock %}
{%block bodyid%}id="writing"{%endblock%}


{% block primary %}
    <article>
    <h1>{% if region %}Writings from {%ifequal region.name 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endifequal%}{%else%}Writing Archive {%endif%}</h1>
    {% if region %}<span class="all-link"><a href="/writing/1/" title="see all writing">{ View All Writing }</a></span>{%endif%}
    <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> &bull; <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&nbsp;it&nbsp;&raquo;</a></p>
                    
            
        </li>
    {% endfor %}
    </ul>
    
    <section id="pagination">
        <ul>{% paginate %}
        </ul>
    </section>
    </article>
{% endblock %}