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:
parent
a91d2dab67
commit
62b4fc2121
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ export function getAndActive(router, el, isParent, autoTitle) {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (autoTitle) {
|
if (autoTitle) {
|
||||||
dom.$.title = target ? `${target.innerText} - ${title}` : title
|
dom.$.title = target ? (target.title || `${target.innerText} - ${title}`) : title
|
||||||
}
|
}
|
||||||
|
|
||||||
return target
|
return target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue