Skip to content

Commit 2727c8f

Browse files
authored
Merge pull request #19 from vsoch/add/top-breadcrumb
Adding Documentation link (root) to breadcrumbs
2 parents 1b2ddee + 739bae2 commit 2727c8f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Critical items to know are:
1414
- changed behaviour
1515

1616
## [master](https://github.com/vsoch/docsy-jekyll/tree/master)
17+
- adding breadcrumb link to documentation root (0.0.16)
1718
- bug with link in top breadcrumb (404) missing baseurl (0.0.15)
1819
- bug that news items (posts) don't render in search (0.0.14)
1920
- minimum width of 150px for top right site name (0.0.13)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.15
1+
0.0.16

_layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
2424
<nav aria-label="breadcrumb" class="d-none d-md-block d-print-none">
2525
<ol class="breadcrumb spb-1">
26+
{% if page.url != "/docs/" %}<li class="breadcrumb-item">
27+
<a href="{{ site.url }}{{ site.baseurl }}/docs/">Documentation</a>
28+
</li>{% endif %}
2629
<li class="breadcrumb-item active" aria-current="page">
2730
<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
2831
</li>

0 commit comments

Comments
 (0)