diff options
author | luxagraf <sng@luxagraf.net> | 2013-05-26 22:05:13 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2013-05-26 22:05:13 -0400 |
commit | 9d928c8004e50b2aef49493fb9ad79e4ac13064a (patch) | |
tree | afff079bf8461fe537b987a1da84dc8e6681c234 /design | |
parent | a73d0e0498f0784859b154840de1da4b0742cc38 (diff) |
fixed bug regarding state/location data in template code
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/details/entry.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index adc1c1c..bc23646 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -21,7 +21,7 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en <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 == "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%} + <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}}</a>, U.S.{%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%} (<a href="" title="">Map</a>, <a href="" title="">Photos</a>){%endcomment%} |