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.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/archives/writing.html b/templates/archives/writing.html
index 51dd13f..952bf9f 100644
--- a/templates/archives/writing.html
+++ b/templates/archives/writing.html
@@ -25,7 +25,7 @@
<a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" width="{{object.image_width}}" height="{{object.image_height}}" class="post-image" /></a>
</div>
<p class="dateline">
- <span class="location" itemprop="geo" itemscope itemtype="http://data-vocabulary.org/​Geo">{% 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 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.country_name|slugify}}/1/" 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> &nbsp;
<time datetime="{{object.pub_date|date:'c'}}">{{object.pub_date|date:"m/d/y"}}</time>