mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-03-29 00:18:29 +08:00
fix: highlight homepage link, fixed #304
This commit is contained in:
@@ -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}"`
|
||||
|
||||
Reference in New Issue
Block a user