Skip to content

Commit

Permalink
Ability to set a custom page title via _sidebar.md (#557)
Browse files Browse the repository at this point in the history
* Ability to set a custom page title via _sidebar.md

* fixes after review
  • Loading branch information
soulfly authored and QingWei-Li committed Jun 29, 2018
1 parent a91d2da commit 62b4fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/event/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function getAndActive(router, el, isParent, autoTitle) {
})

if (autoTitle) {
dom.$.title = target ? `${target.innerText} - ${title}` : title
dom.$.title = target ? (target.title || `${target.innerText} - ${title}`) : title
}

return target
Expand Down

0 comments on commit 62b4fc2

Please sign in to comment.