bulma/docs/_includes/components/breadcrumb.html

37 lines
913 B
HTML
Raw Normal View History

2018-04-09 20:16:50 +00:00
<div class="bd-breadcrumb">
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
{% for key in page.breadcrumb %}
{% assign link = site.data.links.by_id[key] %}
<li{% if forloop.last %} class="is-active"{% endif %}>
<a href="{{ site.url }}{{ link.path }}">{{ link.name }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% if previous_link or next_link %}
<nav class="bd-prev-next">
{% if previous_link %}
<a href="{{ site.url }}{{ previous_link.path }}" title="{{ previous_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
{% if next_link %}
<a href="{{ site.url }}{{ next_link.path }}" title="{{ next_link.name }}">
</a>
{% else %}
<span>
</span>
{% endif %}
</nav>
{% endif %}
</div>