mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: highlight homepage link, fixed #304
This commit is contained in:
parent
85428ef49e
commit
f960c196bf
@ -187,6 +187,7 @@ export class Compiler {
|
||||
!_self.matchNotCompileLink(href) &&
|
||||
!config.ignore
|
||||
) {
|
||||
if (href === _self.config.homepage) href = '/'
|
||||
href = router.toURL(href, null, router.getCurrentPath())
|
||||
} else {
|
||||
attrs += ` target="${linkTarget}"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user