diff options
Diffstat (limited to 'templates/archives/writing.html')
-rw-r--r-- | templates/archives/writing.html | 74 |
1 files changed, 21 insertions, 53 deletions
diff --git a/templates/archives/writing.html b/templates/archives/writing.html index 7071a4e..f6cc33e 100644 --- a/templates/archives/writing.html +++ b/templates/archives/writing.html @@ -1,71 +1,39 @@ -{% extends 'base.html' %} -{% load chunks %} +{% 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 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> +{% 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> - <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> + <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> - <div class="pagination-wrapper">{% paginate %}</div> -</div> - + <section id="pagination"> + <ul>{% paginate %} + </ul> + </section> + </article> {% endblock %} -{% block sidebar %} -<div id="sidebar"> - <div class="blok"> - <h4 class="first">Regions</h4> - <ul> - {% include 'includes/regions_sidebar.html' %} - </ul> - </div> - <div class="blok"> - <h4>Countries</h4> - {% include 'includes/country_sidebar.html' %} - - </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 |