blob: a3d1a3b0d96ee85a3aeec0bee16c2467f08a9143 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{% extends 'base.html' %}
{% load chunks %}
{% 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-archive"{%endblock%}
{% block title %}Writing Archive{% endblock %}
{% block date %}{% endblock %}
{% block primaryoverride %}<h2>{% if region %}Writings from {{region.name|title|smartypants|safe}}{%else%}Writing Archive {%endif%}</h2>{% endblock %}
{% block extrabody %}
<div class="archives">
<ul>
{% autopaginate object_list 10 %}
{% for object in object_list %}
<li>
<dl>
<dt>
<span class="post-image"><img src="{%if object.thumbnail%}{{object.get_thumbnail_url}}" alt="{{ object.title }}{%endif%}"/></span>
<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>
</dt>
<dd>
<span class="date">{{object.pub_date|date:"F j, Y"}} {% ifequal object.location.state.country.name "United States" %}({{object.location.name|smartypants|safe}}, {{object.location.state.name}}){%else%}({{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}){%endifequal%}</span>
{{object.dek|safe}}
<span class="more"><a href="{{object.get_absolute_url}}" title="{{object.title}}">Read it »</a></span>
</dd>
</dl>
</li>
{% endfor %}
</ul>
<div class="pagination-wrapper">{% paginate %}</div>
</div>
{% endblock %}
{% block sidebar %}
<div id="sidebar">
<div class="blok">
<h4 class="first">Regions</h4>
<ul>
{%for region in region_list %}
<li><a href="/writing/{{region.slug}}/1/" title="See all writing from {{region.name|title}}">{{region.name}}</a></li>
</li>
{% endfor %}
</ul>
</div>
<div class="blok">
<h4>Countries</h4>
<ul>
{%for country in country_list %}
<li><a href="/writing/{{country.slug}}/1/" title="See all writing from {{country.name|title}}">{{country.name}}</a></li>
</li>
{% endfor %}
</ul>
</div>
<div class="blok">
<h4>About Luxagraf</h4>
{% chunk "about_sidebar" %}
</div>
<div class="blok">
<h4>Follow Along</h4>
{% chunk "follow_sidebar" %}
</div>
</div><!-- sidebar -->
{% endblock %}
|