summaryrefslogtreecommitdiff
path: root/templates/archives/writing.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/archives/writing.html')
-rw-r--r--templates/archives/writing.html79
1 files changed, 79 insertions, 0 deletions
diff --git a/templates/archives/writing.html b/templates/archives/writing.html
new file mode 100644
index 0000000..f3bc288
--- /dev/null
+++ b/templates/archives/writing.html
@@ -0,0 +1,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="{{object.title}}">{{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 &raquo;</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 %} \ No newline at end of file