diff options
Diffstat (limited to 'nikola/data/themes/bootstrap4/templates/ui_helper.tmpl')
| -rw-r--r-- | nikola/data/themes/bootstrap4/templates/ui_helper.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nikola/data/themes/bootstrap4/templates/ui_helper.tmpl b/nikola/data/themes/bootstrap4/templates/ui_helper.tmpl new file mode 100644 index 0000000..7e884f9 --- /dev/null +++ b/nikola/data/themes/bootstrap4/templates/ui_helper.tmpl @@ -0,0 +1,24 @@ +## -*- coding: utf-8 -*- +<%def name="breadcrumbs(crumbs)"> +%if crumbs: +<nav class="breadcrumbs"> +<ul class="breadcrumb"> + % for link, text in crumbs: + % if text != index_file: + % if link == '#': + <li class="breadcrumb-item active">${text.rsplit('.html', 1)[0]}</li> + % else: + <li class="breadcrumb-item"><a href="${link}">${text}</a></li> + % endif + % endif + % endfor +</ul> +</nav> +%endif +</%def> + +<%def name="show_sourcelink(sourcelink_href)"> + <li class="nav-item"> + <a href="${sourcelink_href}" id="sourcelink" class="nav-link">${messages("Source")}</a> + </li> +</%def> |
