Skip to content

Commit

Permalink
Add breadcrumbs example page
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed May 3, 2017
1 parent 9575804 commit 311bcc4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions server/views/components/breadcrumbs.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% extends "layouts/_layout.njk" %}
{% set title = "Breadcrumbs" %}

{% block body %}

<div class="container">

<h1>Breadcrumbs</h1>

<nav aria-label="Breadcrumbs" role="navigation">
<p class="visually-hidden" id="breadcrumb-label">
You are here:
</p>
<ol class="breadcrumbs" aria-labelledby="breadcrumb-label" itemscope itemtype="http://schema.org/BreadcrumbList">
<li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="/" itemprop="name">
NICE
</a>
<meta itemprop="position" content="1">
</li>
<li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="/" itemprop="name">
Guidance
</a>
<meta itemprop="position" content="2">
</li>
<li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="/" itemprop="name">
Conditions and diseases
</a>
<meta itemprop="position" content="3">
</li>
<li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<span itemprop="name">
{{ title }}
</span>
<meta itemprop="position" content="{{ lastCrumbIndex + 1 }}">
</li>
</ol>
</nav>

</div>

{% endblock %}
1 change: 1 addition & 0 deletions server/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% block body %}

<ul>
<li><a href="/components/breadcrumbs/">Breadcrumbs</a></li>
<li><a href="/components/buttons/">Buttons</a></li>
<li><a href="/components/tabs/">Tabs</a></li>
<li><a href="/components/quote/">Quote</a></li>
Expand Down

0 comments on commit 311bcc4

Please sign in to comment.