diff options
author | luxagraf <sng@luxagraf.net> | 2013-05-02 09:56:51 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2013-05-02 09:56:51 -0400 |
commit | 225479063dbbe636d4d493ba1a3d7bab8a234047 (patch) | |
tree | 5580cdb6b570513ed6a93aadf47bbcb5eaa4bcb1 /design | |
parent | f3dcfb4e840f51fd0329be7a994ca8864c5f85e8 (diff) |
fixed region/country/state links on archive and detail pages
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/archives/writing.html | 2 | ||||
-rw-r--r-- | design/templates/details/entry.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/archives/writing.html b/design/templates/archives/writing.html index 983b59a..e704998 100644 --- a/design/templates/archives/writing.html +++ b/design/templates/archives/writing.html @@ -21,7 +21,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> <div class="dateline"> - <p class="location bl" 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%} + <p class="location bl" 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/" 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}}/" title="travel writing from {{object.location.state.country.name}}">{{object.location.state.country.name}}</a>{%endif%} <meta itemprop="latitude" content="{{object.latitude}}" /> <meta itemprop="longitude" content="{{object.longitude}}" /></p> <time datetime="{{object.pub_date|date:'c'}}" pubdate>{{object.pub_date|date:"m/d/y"}}</time> diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index c5dc80f..5209d09 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -20,7 +20,7 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en <header> <h1>{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}</h1> <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.country_name|slugify}}/1/" 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_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%} <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%} |