diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-14 22:41:12 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-14 22:41:12 +0000 |
commit | ad23af9549c4bc23ab345966d977e1f5d69ac03d (patch) | |
tree | 32b5cf3f81f10b0716aa0a9959c3ded9118f528b /templates/archives | |
parent | a851eba9a0f5928d8c53eea443fa2e8ba337d3a5 (diff) |
added microdata to breadcrumbs
Diffstat (limited to 'templates/archives')
-rw-r--r-- | templates/archives/map.html | 4 | ||||
-rw-r--r-- | templates/archives/photos.html | 8 | ||||
-rw-r--r-- | templates/archives/projects.html | 4 | ||||
-rw-r--r-- | templates/archives/region.html | 110 | ||||
-rw-r--r-- | templates/archives/robots.html | 1 | ||||
-rw-r--r-- | templates/archives/topics.html | 39 | ||||
-rw-r--r-- | templates/archives/writing.html | 9 |
7 files changed, 13 insertions, 162 deletions
diff --git a/templates/archives/map.html b/templates/archives/map.html index f7a008f..f47b84d 100644 --- a/templates/archives/map.html +++ b/templates/archives/map.html @@ -25,8 +25,8 @@ Google Maps code {% block primary %} <article> - <ul id="breadcrumbs"> - <li><a href="/" title="luxagraf homepage">Home</a> →</li> + <ul id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> + <li><a href="/" itemprop="url" title="luxagraf homepage"><span itemprop="title">Home</span></a> →</li> <li>Map</li> </ul> diff --git a/templates/archives/photos.html b/templates/archives/photos.html index 85bc498..1eacf3c 100644 --- a/templates/archives/photos.html +++ b/templates/archives/photos.html @@ -12,10 +12,10 @@ <article> <h1>{% if region %}Photographs from {{region.name|title|smartypants|safe}}{%else%}Photographs from Around the World {%endif%}</h1> - <ul id="breadcrumbs"> - <li><a href="/" title="luxagraf homepage">Home</a> →</li> - {% if region %}{%if region.name == 'United States'%} <li><a href="/photos/" title="See all Photos">Photos</a> →</li> - <li>the United States</li>{%else%}<li><a href="/photos/" title="See all Photos">Photos</a> →</li> <li>{{region.name|title|smartypants|safe}}{%endif%}{%else%}Photos </li>{%endif%} + <ul id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> + <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> →</li> + {% if region %}{%if region.name == 'United States'%} <li><a href="/photos/" title="See all Photos" itemprop="url"><span itemprop="title">Photos</span></a> →</li> + <li>the United States</li>{%else%}<li><a href="/photos/" title="See all Photos" itemprop="url"><span itemprop="title">Photos</span></a> →</li> <li>{{region.name|title|smartypants|safe}}{%endif%}{%else%}Photos </li>{%endif%} </ul> <ul id="photo-galleries">{% autopaginate object_list 18 %} {% for object in object_list %} diff --git a/templates/archives/projects.html b/templates/archives/projects.html index 2f0d607..b253ad1 100644 --- a/templates/archives/projects.html +++ b/templates/archives/projects.html @@ -7,8 +7,8 @@ {% block primary %} <article> - <ul id="breadcrumbs"> - <li><a href="/" title="luxagraf homepage">Home</a> →</li> + <ul id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> + <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> →</li> <li>Projects</li> </ul> <h1 class="hide">Projects</h1> diff --git a/templates/archives/region.html b/templates/archives/region.html deleted file mode 100644 index d4b8c4a..0000000 --- a/templates/archives/region.html +++ /dev/null @@ -1,110 +0,0 @@ -{% extends 'base.html' %} -{% load chunks %} -{% load truncateletters %} -{% load slugify_under %} - -{% block pagetitle %}Luxagraf | Stories from {{region.name}}{% endblock %} -{% block metadescription %}Writing Archive, Luxagraf{% endblock %} - -{#============================================== -Google Maps code -==============================================#} -{% block extrahead %} - -<script src="http://maps.google.com/maps?file=api&v=2&key={{map_key}}" type="text/javascript" type="text/javascript"></script> -<script src="http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/1.1/src/mapiconmaker.js" type="text/javascript" type="text/javascript"></script> - -<script type="text/javascript"> - var map = null; - function JLngLat(a,b) { - return new GLatLng(b,a) - } - function initialize() { - if (GBrowserIsCompatible()) { - var iconOptions = {}; - iconOptions.primaryColor = "#a53503"; - iconOptions.strokeColor = "#201a11"; - var icon = MapIconMaker.createLabeledMarkerIcon(iconOptions); - - point = new GLatLng({{region.lat}},{{region.lon}}) - // create a new map. - map = new GMap2(document.getElementById("map-canvas")); - map.setCenter(point, {{region.zoom_level}}, G_PHYSICAL_MAP); - - // basic control and overview (closed by default) - map.addControl(new GSmallZoomControl()); - var ov = new GOverviewMapControl(new GSize(100,100)); - map.addControl(ov); - ov.hide(true); - - // Add a marker for each project - - {% for entry in object_list %} - point_{{entry.title|truncatewords:2|slugify_under}} = JLngLat{{entry.point.coords}}; - markerOptions = { clickable:true, draggable:false, icon:icon}; - marker_{{entry.title|truncatewords:2|slugify_under}} = new GMarker(point_{{entry.title|truncatewords:2|slugify_under}}, markerOptions); - map.addOverlay(marker_{{entry.title|truncatewords:2|slugify_under}}); - marker_{{entry.title|truncatewords:2|slugify_under}}.info_window_content = '<h4>{{entry.title}}<\/h4><span>{{entry.location|safe}}, {{entry.location.state.country.name|safe}}<\/span><p><img src="{{entry.thumbnail.url}}" height="100" alt="{{ entry.title }}" \/>{{entry.dek|escapejs}} <a href="{{entry.get_absolute_url}}">Read it »<\/a><\/p>' - marker_{{entry|truncatewords:2|slugify_under}}.bindInfoWindowHtml(marker_{{entry|truncatewords:2|slugify_under}}.info_window_content, {maxWidth:400}); - GEvent.addListener(marker_{{entry.title|truncatewords:2|slugify_under}}, "click", function() { - map.panTo(point_{{entry.title|truncatewords:2|slugify_under}}, 2); - }); - - {% endfor %} - } - } - - // center on a city - function focusCity(marker, latitude, longitude) { - point = new GLatLng(latitude, longitude) - map.panTo(point) - map.setZoom(6); - marker.openInfoWindowHtml(marker.info_window_content) - } - // center on a country - function focusCountry(latitude, longitude, zoom) { - p = new GLatLng(latitude, longitude) - map.panTo(p) - map.setZoom(zoom); - } - function addRoute(line,levels,color,lat,lon,zoom){ - var encodedPolyline = new GPolyline.fromEncoded({ - color: color, - weight: 5, - points: line, - levels: levels, - zoomFactor: 32, - numLevels: 4 -}); -focusCountry(lat,lon,zoom); -map.addOverlay(encodedPolyline); - - } - </script> - -{% endblock %} -{%block bodyid%}id="location"{%endblock%} -{% block bodyevents %}onload="initialize()" onunload="GUnload()"{% endblock %} - - - - - -{% block primary %} - <div id="map-canvas"> - -</div> - {% endblock %} - -{% block titleoverride %} {% endblock %} - -{% block sidebar %} -<div id="sidebar"> - <div class="blok"> - <h4 class="first">Topography</h4> - {% chunk "regions_sidebar" %} - - </div> -</div><!-- sidebar --> - -{% endblock %}
\ No newline at end of file diff --git a/templates/archives/robots.html b/templates/archives/robots.html deleted file mode 100644 index ac2bc1f..0000000 --- a/templates/archives/robots.html +++ /dev/null @@ -1 +0,0 @@ -User-agent: *
Disallow: /stats/
Disallow: /media/js/
Disallow: /media/img/
\ No newline at end of file diff --git a/templates/archives/topics.html b/templates/archives/topics.html deleted file mode 100644 index 008ab6f..0000000 --- a/templates/archives/topics.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends 'base.html' %} -{% load typogrify %} -{% load pagination_tags %} - -{% block pagetitle %}Luxagraf | {% if region %}Travel Writing from {{region.name|title|smartypants|safe}}{%else%}Travel Writing from Around the World {%endif%}{% endblock %} -{% block metadescription %}{% if region %}Travel writing, essays and dispatches from {{region.name|title|smartypants|safe}}{%else%}Travel writing, essays and dispatches from around the world{%endif%}{% endblock %} -{%block bodyid%}id="writing"{%endblock%} - - -{% block primary %} - <article> - <h1>{{topic.header}}</h1> - <span class="all-link"><a href="/writing/1/" title="see all writing">{ View All Writing }</a></span> - <ul id="writing-archive"> - {% autopaginate object_list 10 %} - {% for object in object_list %} - <li> - <h3 class="title"><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> - - {%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%} - - <time datetime="{{object.pub_date}}">{{object.pub_date|date:"F j, Y"}}</time> • <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> - - <p class="intro">{{object.dek|safe}} <a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">Read it »</a></p> - - - </li> - {% endfor %} - </ul> - - <section id="pagination"> - <ul>{% paginate %} - </ul> - </section> - </article> -{% endblock %} - - - diff --git a/templates/archives/writing.html b/templates/archives/writing.html index 3f8bca3..f05b34c 100644 --- a/templates/archives/writing.html +++ b/templates/archives/writing.html @@ -11,10 +11,11 @@ <article> <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 %}{%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 id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> + <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> → </li> + {% if region %}{%if region.name == 'United States'%} <li><a href="/writing/" title="See all Writing" itemprop="url"><span itemprop="title">Writing</span></a> →</li> + <li itemprop="title">the United States</li>{%else%}<li><a href="/writing/" title="See all Writing" itemprop="url"><span>Writing</span></a> →</li> + <li>{{region.name|title|smartypants|safe}}</li>{%endif%}{%else%}Writing </li>{%endif%} </ul> <ul id="writing-archive"> |