-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(breadcrumb): add example with span tag instead of link without href
- Loading branch information
1 parent
c5a447a
commit 34d6791
Showing
5 changed files
with
27 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('Fil d’Ariane', './sample/breadcrumb', { }, true); %> | ||
<%- sample('Fil d’Ariane avec liens', './sample/sample-a', { }, true); %> | ||
|
||
<%- sample('Fil d’Ariane avec <span> en dernier element', './sample/sample-span', { }, true); %> |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% const data = { | ||
id: uniqueId('breadcrumb'), | ||
segments: [ | ||
{ path: '', label: 'Accueil' }, | ||
{ path: 'segment-1', label: 'Segment 1 : lorem ipsum' }, | ||
{ path: 'segment-2', label: 'Segment 2 : lorem ipsum' }, | ||
{ path: 'segment-4', label: 'Segment 3 : lorem ipsum dolor sit amet' }, | ||
{ markup: 'span', label: 'Page Actuelle' } | ||
], | ||
...locals.breadcrumb | ||
} | ||
%> | ||
|
||
<%- include('../../template/ejs/breadcrumb.ejs', {breadcrumb: data}); %> |
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