fix: highlight homepage link, fixed #304

This commit is contained in:
qingwei.li 2018-02-10 17:16:05 +08:00 committed by cinwell.li
parent 85428ef49e
commit f960c196bf

View File

@ -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}"`