summaryrefslogtreecommitdiff
path: root/design/templates/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
committerluxagraf <sng@luxagraf.net>2020-01-27 20:37:10 -0500
commit6e8b62d8c38f6ca366f240ea45ad738ebfd62943 (patch)
treeb8c695cdd5c7f1f7729fa6750ed49c1eb2eae3e8 /design/templates/lib
parent09abece4982e8dceabe1dd8d678639205a4a6208 (diff)
abstracted breadcrumbs into seperate template
Diffstat (limited to 'design/templates/lib')
-rw-r--r--design/templates/lib/breadcrumbs.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/design/templates/lib/breadcrumbs.html b/design/templates/lib/breadcrumbs.html
new file mode 100644
index 0000000..ac47d5a
--- /dev/null
+++ b/design/templates/lib/breadcrumbs.html
@@ -0,0 +1,14 @@
+<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>
+ {% for crumb in breadcrumbs %}<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
+ {% if crumb_url %}
+ <a href="{{crumb_url}}" itemprop="item"><span itemprop="name">{{crumb}}</span></a>
+ <meta itemprop="position" content="{{ forloop.counter|add:"+1" }}" />{% else %}
+ <span itemprop="item">
+ <span itemprop="name">{{crumb}}</span>
+ </span>{% endif %}
+ <meta itemprop="position" content="2" />
+ </li>{%endfor%}
+ </ol>