Ability to set a custom page title via _sidebar.md (#557)

* Ability to set a custom page title via _sidebar.md

* fixes after review
This commit is contained in:
Manu Kind 2018-06-30 02:24:31 +03:00 committed by cinwell.li
commit 62b4fc2121

View file

@ -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