-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor(breadcrumbs)!: expect a mapping from names to URLs
- Loading branch information
1 parent
67d25ff
commit 6839901
Showing
3 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<nav class="breadcrumb"> | ||
<ul> | ||
{% for item in items %} {% for label, url in item.items() %} {% if url %} | ||
<li><a href="{{ url }}" aria-label="{{label}}">{{ label }}</a></li> | ||
{% else %} | ||
<li aria-current="{{label}}">{{ label }}</li> | ||
{% endif %} {% endfor %} {% endfor %} | ||
{% for label, url in items.items() %} | ||
{% if not loop.last %} | ||
<li><a href="{{ url }}" aria-label="{{label}}">{{ label }}</a></li> | ||
{% else %} | ||
<li aria-current="{{label}}">{{ label }}</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</nav> |