summaryrefslogtreecommitdiff
path: root/app/posts
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-15 14:26:39 -0400
committerluxagraf <sng@luxagraf.net>2020-08-15 14:26:39 -0400
commiteaa8b13fb802cf2135f91ef108df8875d4ca18b2 (patch)
treed4e079aa9d090a789c374778f6b143afb07cbc34 /app/posts
parent00a432ed481be1f2816499048336f0f055d7786f (diff)
fixed a bug in field notes breadcrumbs
Diffstat (limited to 'app/posts')
-rw-r--r--app/posts/templates/posts/fieldnote_detail.html21
-rw-r--r--app/posts/templates/posts/fieldnote_list.html15
-rw-r--r--app/posts/views/field_note_views.py1
3 files changed, 35 insertions, 2 deletions
diff --git a/app/posts/templates/posts/fieldnote_detail.html b/app/posts/templates/posts/fieldnote_detail.html
index d1c648b..3368c56 100644
--- a/app/posts/templates/posts/fieldnote_detail.html
+++ b/app/posts/templates/posts/fieldnote_detail.html
@@ -13,7 +13,26 @@
<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 %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% 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 primary %}<main role="main">
<article class="h-entry hentry {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/BlogPosting">
<header id="header" class="post-header {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %}post--header--double{%endif%}{%endwith%}">
diff --git a/app/posts/templates/posts/fieldnote_list.html b/app/posts/templates/posts/fieldnote_list.html
index 1cf4f9e..fc15812 100644
--- a/app/posts/templates/posts/fieldnote_list.html
+++ b/app/posts/templates/posts/fieldnote_list.html
@@ -6,7 +6,20 @@
{% block pagetitle %} Field Notes | luxagraf {% endblock %}
{% block metadescription %}Rough notes and sketches from the field {% endblock %}
{%block bodyid%}id="field-notes"{%endblock%}
-{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% 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 primary %}<main role="main" id="essay-archive" class="essay-archive archive-list">
<div class="essay-intro">
<h2>Field Notes</h2>
diff --git a/app/posts/views/field_note_views.py b/app/posts/views/field_note_views.py
index 8b2c78c..41ceeaa 100644
--- a/app/posts/views/field_note_views.py
+++ b/app/posts/views/field_note_views.py
@@ -18,6 +18,7 @@ class FieldNoteListView(PaginatedListView):
class FieldNoteDetailView(LuxDetailView):
model = Post
slug_field = "slug"
+ template_name = "posts/fieldnote_detail.html"
class FieldNoteDetailViewTXT(FieldNoteDetailView):