fix: homepage link

This commit is contained in:
qingwei.li 2018-02-11 22:01:01 +08:00 committed by cinwell.li
commit e097f88f0e
2 changed files with 2 additions and 4 deletions

View file

@ -211,7 +211,7 @@ export class Compiler {
!_self.matchNotCompileLink(href) &&
!config.ignore
) {
if (href === _self.config.homepage) href = '/'
if (href === _self.config.homepage) href = 'README'
href = router.toURL(href, null, router.getCurrentPath())
} else {
attrs += ` target="${linkTarget}"`