Skip to content

Commit

Permalink
add more parents in breadcrumb (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
superyyrrzz authored Dec 7, 2016
1 parent b3064cb commit 76a46a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docfx.website.themes/default/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ $(function () {
$(e).parent().addClass(active);
var parent = $(e).parent().parents('li').children('a');
if (!breadcrumb.isTocPartLoaded) {
if (parent.length > 0) {
for (var i = parent.length - 1; i >= 0; i--) {
breadcrumb.push({
href: parent[0].href,
name: parent[0].innerHTML
href: parent[i].href,
name: parent[i].innerHTML
});
}
breadcrumb.push({
Expand Down

0 comments on commit 76a46a0

Please sign in to comment.