-
Notifications
You must be signed in to change notification settings - Fork 142
Add autogenerated breadcrumbs component #2193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a49697a
9b2053d
8446b20
9e52b2c
26efe57
470d8c4
f81ad86
62f6a36
e130ef4
3736018
d1a11c8
52e0ee0
eaaed3d
58af2cc
40f2420
1577de8
bcda8c0
0681963
7417a27
8a3eff0
a6eb601
0765cc9
7a78d3c
fbba3b5
dbcd040
0fd9d9c
b6c75ce
838cf04
6dfcfc2
6c5b9ba
3d88001
d388747
34ba094
301881d
dba91ad
aa0a123
4c6c68c
95d1c28
45bae02
c673b2f
d566ac3
e91d38e
52c6edf
e6b98df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,7 @@ | |
| </div> | ||
| </nav> | ||
| <div id="content-wrapper"> | ||
| <breadcrumb /> | ||
| {{ content }} | ||
| </div> | ||
| <nav id="page-nav"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ | |
| </div> | ||
| </nav> | ||
| <div id="content-wrapper"> | ||
| <breadcrumb /> | ||
| {{ content }} | ||
| </div> | ||
| <nav id="page-nav"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| ## Breadcrumbs | ||
|
|
||
| Breadcrumb components provide an easy way for readers to navigate the hierarchy of the site. | ||
|
|
||
| #### Usage | ||
|
|
||
| Simply include the breadcrumb component (`<breadcrumb />`) into the page you want and breadcrumbs for that page will be automatically generated. | ||
|
|
||
| You can also insert the breadcrumb component into a layout file to generate breadcrumbs for all pages using that layout. | ||
|
|
||
| %%CODE:%% | ||
|
|
||
| <div class="indented"> | ||
|
|
||
| ```html | ||
| <breadcrumb /> | ||
| ``` | ||
|
|
||
| </div> | ||
|
|
||
| %%OUTPUT:%% | ||
|
|
||
| <div class="indented"> | ||
|
|
||
| > <breadcrumb /> | ||
|
|
||
| </div> | ||
|
|
||
| <box type="tip" seamless> | ||
| Breadcrumb components refer to the Site Navigation for the hierarchy of pages. | ||
|
|
||
| **Breadcrumbs will not appear if there is no Site Navigation present on the page!** | ||
| </box> | ||
|
|
||
| <!-- Included in syntax cheat sheet --> | ||
| <div id="short" class="d-none"> | ||
|
|
||
| ```html | ||
| <breadcrumb /> | ||
| ``` | ||
|
|
||
| </div> | ||
|
|
||
| <!-- Included in readerFacingFeatures.md --> | ||
| <div id="examples" class="d-none"> | ||
| <breadcrumb /> | ||
| </div> | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |
| </div> | ||
| </nav> | ||
| <div id="content-wrapper"> | ||
| <breadcrumb /> | ||
| {{ content }} | ||
| </div> | ||
| <nav id="page-nav"> | ||
|
|
||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.