aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base-jinja/templates/ui_helper.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base-jinja/templates/ui_helper.tmpl')
-rw-r--r--nikola/data/themes/base-jinja/templates/ui_helper.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/nikola/data/themes/base-jinja/templates/ui_helper.tmpl b/nikola/data/themes/base-jinja/templates/ui_helper.tmpl
new file mode 100644
index 0000000..9eb5697
--- /dev/null
+++ b/nikola/data/themes/base-jinja/templates/ui_helper.tmpl
@@ -0,0 +1,18 @@
+{# -*- coding: utf-8 -*- #}
+{% macro breadcrumbs(crumbs) %}
+{% if crumbs %}
+<nav class="breadcrumbs">
+<ul class="breadcrumb">
+ {% for link, text in crumbs %}
+ {% if text != index_file %}
+ {% if link == '#' %}
+ <li>{{ text.rsplit('.html', 1)[0] }}</li>
+ {% else %}
+ <li><a href="{{ link }}">{{ text }}</a></li>
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+</ul>
+</nav>
+{% endif %}
+{% endmacro %}