summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/posts/templates/posts/fieldnote_detail.html39
-rw-r--r--app/posts/templates/posts/fieldnote_list.html15
2 files changed, 11 insertions, 43 deletions
diff --git a/app/posts/templates/posts/fieldnote_detail.html b/app/posts/templates/posts/fieldnote_detail.html
index 0cb8dd1..3ebb7f8 100644
--- a/app/posts/templates/posts/fieldnote_detail.html
+++ b/app/posts/templates/posts/fieldnote_detail.html
@@ -13,26 +13,7 @@
<meta name="geo.region" content="{{object.country.iso2}}{%if object.state.code != '' %}-{{object.state.code}}{%endif%}">
{%endblock%}
{% block bodyid %}class="notes--permalin detail" id="archive-{% if month %}{{month|month_number_to_name}}{%endif%}{{year}}"{%endblock%}
-{% block breadcrumbs %}
-<ol class="bl" id="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
- <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
- <a itemprop="item" href="/"><span itemprop="name">Home</span></a> &rarr;
- <meta itemprop="position" content="1" />
- </li>
- <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
- <span itemprop="item">
- <a href="/field-notes/" itemprop="item"><span itemprop="name">Field Notes</span></a>{%if object.short_title%} &rarr;{%endif%}
- </span>
- <meta itemprop="position" content="2" />
- </li>
- {%if object.short_title%}<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
- <span itemprop="item">
- <span itemprop="item"><span itemprop="name">{{object.short_title}}</span></span>
- </span>
- <meta itemprop="position" content="3" />
- </li>{%endif%}
- </ol>
-{% endblock %}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
{% block primary %}<main role="main">
<article class="h-entry hentry" itemscope itemType="http://schema.org/BlogPosting">
<article class="h-entry hentry entry-content content" itemscope itemType="http://schema.org/BlogPosting">
@@ -53,15 +34,15 @@
</div>
{% with object.get_next_published as next %}
{% with object.get_previous_published as prev %}
- <nav id="page-navigation">
- <ul>{% if prev%}
- <li rel="previous" id="next"><span class="bl">Previous:</span>
- <a href="{{ prev.get_absolute_url }}" rel="prev" title=" {{prev.title}}">{{prev.title|safe}}</a>
- </li>{%endif%}{% if next%}
- <li rel="next" id="prev"><span class="bl">Next:</span>
- <a href="{{ next.get_absolute_url }}" rel="next" title=" {{next.title}}">{{next.title|safe}}</a>
- </li>{%endif%}
- </ul>
+ <nav class="page-navigation">
+ <div>{% if prev%}
+ <span class="label">Previous:</span>
+ <a href="{{ prev.get_absolute_url }}" rel="prev" title=" {{prev.title}}">{{prev.title|safe}}</a>
+ </div>{%endif%}{% if next%}
+ <div>
+ <span class="label">Next:</span>
+ <a href="{{ next.get_absolute_url }}" rel="next" title=" {{next.title}}">{{next.title|safe}}</a>
+ </div>{%endif%}
</nav>{%endwith%}{%endwith%}
</article>
</main>
diff --git a/app/posts/templates/posts/fieldnote_list.html b/app/posts/templates/posts/fieldnote_list.html
index cd7601e..8aed277 100644
--- a/app/posts/templates/posts/fieldnote_list.html
+++ b/app/posts/templates/posts/fieldnote_list.html
@@ -6,20 +6,7 @@
{% block pagetitle %} Field Notes | luxagraf {% endblock %}
{% block metadescription %}Rough notes and sketches from the field {% endblock %}
{%block bodyid%}id="field-notes"{%endblock%}
-{% block breadcrumbs %}
-<ol class="bl" id="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
- <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
- <a itemprop="item" href="/"><span itemprop="name">Home</span></a> &rarr;
- <meta itemprop="position" content="1" />
- </li>
- <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
- <span itemprop="item">
- <span itemprop="name" class="faint">Field Notes</span>
- </span>
- <meta itemprop="position" content="2" />
- </li>
- </ol>
-{% endblock %}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
{% block primary %}<main role="main" class="archive-wrapper">
<div class="archive-intro">
<h2 class="archive-hed">Field Notes</h2>