diff options
author | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
commit | bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch) | |
tree | 6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /templates/lib/breadcrumbs.html |
initial commit
Diffstat (limited to 'templates/lib/breadcrumbs.html')
-rw-r--r-- | templates/lib/breadcrumbs.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/lib/breadcrumbs.html b/templates/lib/breadcrumbs.html new file mode 100644 index 0000000..025b8e4 --- /dev/null +++ b/templates/lib/breadcrumbs.html @@ -0,0 +1,14 @@ +<nav class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList"> + <span class="nav-item" itemprop="item"> + <a href="/" itemprop="name">Home</a> + <meta itemprop="position" content="1" /> + </span>{% for crumb in breadcrumbs %}{% if crumb_url %} + <span class="nav-item" itemprop="item"> + <a href="{{crumb_url}}" itemprop="name">{{crumb}}</a> + <meta itemprop="position" content="{{ forloop.counter|add:"+1" }}" /> + </span>{% else %} + <span class="nav-item" itemprop="item"> + <span itemprop="name">{{crumb}}</span> + <meta itemprop="position" content="2" /> + </span>{% endif %}{%endfor%} + </nav> |