diff options
Diffstat (limited to 'templates/archives/writing.html')
-rw-r--r-- | templates/archives/writing.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/archives/writing.html b/templates/archives/writing.html index 5b5f93d..7628272 100644 --- a/templates/archives/writing.html +++ b/templates/archives/writing.html @@ -9,12 +9,12 @@ {% block primary %} <article> - <h1 class="hide">{% if region %}Writings from {%ifequal region.name 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endifequal%}{%else%}Writing {%endif%}</h1> + <h1 class="hide">{% if region %}Writings from {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%}Writing {%endif%}</h1> <ul id="breadcrumbs"> <li><a href="/" title="luxagraf homepage">Home</a> →</li> - {% if region %}{%ifequal region.name 'United States'%} <li><a href="/writing/" title="See all Writing">Writing</a> →</li> - <li>the United States</li>{%else%}<li><a href="/writing/" title="See all Writing">Writing</a> →</li> <li>{{region.name|title|smartypants|safe}}{%endifequal%}{%else%}Writing </li>{%endif%} + {% if region %}{%if region.name == 'United States'%} <li><a href="/writing/" title="See all Writing">Writing</a> →</li> + <li>the United States</li>{%else%}<li><a href="/writing/" title="See all Writing">Writing</a> →</li> <li>{{region.name|title|smartypants|safe}}{%endif%}{%else%}Writing </li>{%endif%} </ul> <ul id="writing-archive"> @@ -25,11 +25,11 @@ <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> <p> - <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> + <span class="location">{% if 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>{%endif%}</span> <time datetime="{{object.pub_date}}">{{object.pub_date|date:"m/d/y"}}</time> </p> - <p>{{object.dek|safe}}</p> + <p class="hyphenate">{{object.dek|safe}}</p> </div> <div class="img"> <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="post-image" /></a> @@ -48,3 +48,4 @@ +{% block js %}<script src="{{MEDIA_URL}}js/hyphenate.js" type="text/javascript"></script>{% endblock%}
\ No newline at end of file |