[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/develop] add breadcrumb template
commit f0331cadae140a9c79015bf7a757fcdfe52673cd
Author: Antonela <hola@xxxxxxxxxxx>
Date: Thu Sep 5 09:40:20 2019 -0400
add breadcrumb template
---
templates/breadcrumb.html | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/templates/breadcrumb.html b/templates/breadcrumb.html
new file mode 100644
index 0000000..6f99a4d
--- /dev/null
+++ b/templates/breadcrumb.html
@@ -0,0 +1,13 @@
+<nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ {% set root = site.get('/') %}
+ {% for child in root.children recursive %}
+ <li{% if this._path == child._path %} class="breadcrumb-item active"{% endif
+ %}><a href="{{ child|url }}">{{ child.title }}</a>
+ {% if this.is_child_of(child) %}
+ <ul>{{ loop(child.children) }}</ul>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ol>
+</nav>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits