summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2013-05-26 21:58:48 -0400
committerluxagraf <sng@luxagraf.net>2013-05-26 21:58:48 -0400
commita73d0e0498f0784859b154840de1da4b0742cc38 (patch)
tree2daf0f8111be07fc872bce26de1ed38dd9c27605 /design
parent7ba10b77f38576b688d7833237e2ec3f36c3292a (diff)
fixed bug regarding location data in template code
Diffstat (limited to 'design')
-rw-r--r--design/templates/details/entry.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html
index 5209d09..adc1c1c 100644
--- a/design/templates/details/entry.html
+++ b/design/templates/details/entry.html
@@ -19,13 +19,13 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en
<article role="main">
<header>
<h1>{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}</h1>
+ <time datetime="{{object.pub_date|date:'c'}}" pubdate>{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>
<aside class="geo bl">
- <span class="location" itemprop="geo" itemscope itemtype="http://data-vocabulary.org/​Geo">{% if object.country_name == "United States" %}{{object.location_name|smartypants|safe}}, <a href="/writing/united-states/1/" title="travel writing from the United States">{{object.state_name}}</a>{%else%}{{object.location_name|smartypants|safe}}, <a href="/writing/{{object.location.state.country.slug}}/" title="travel writing from {{object.country_name}}">{{object.country_name}}</a>{%endif%}
+ <span class="location" itemprop="geo" itemscope itemtype="http://data-vocabulary.org/​Geo">{% if object.country == "United States" %}{{object.location.name|smartypants|safe}}, <a href="/writing/united-states/1/" title="travel writing from the United States">{{object.state}}</a>{%else%}{{object.location.name|smartypants|safe}}, <a href="/writing/{{object.country.slug}}/" title="travel writing from {{object.country.name}}">{{object.country.name}}</a>{%endif%}
<meta itemprop="latitude" content="{{object.latitude}}" />
<meta itemprop="longitude" content="{{object.longitude}}" /></span>
{%comment%} &nbsp;&nbsp;(<a href="" title="">Map</a>, <a href="" title="">Photos</a>){%endcomment%}
</aside>
- <time datetime="{{object.pub_date|date:'c'}}" pubdate>{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>
</header>
<div class="post-body{% with object.template_name as t %}{%if t == 0 or t == 2 %}-single{%endif%}{%if t == 1 or t == 3 %}-double{%endif%}{%endwith%}">
{{object.body_html|smartypants|widont|safe}}