Skip to content
  • Sponsor docsifyjs/docsify

  • Notifications You must be signed in to change notification settings
  • Fork 5.7k

Commit f960c19

Browse files
committedFeb 11, 2018
fix: highlight homepage link, fixed #304
1 parent 85428ef commit f960c19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/render/compiler.js

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export class Compiler {
187187
!_self.matchNotCompileLink(href) &&
188188
!config.ignore
189189
) {
190+
if (href === _self.config.homepage) href = '/'
190191
href = router.toURL(href, null, router.getCurrentPath())
191192
} else {
192193
attrs += ` target="${linkTarget}"`

0 commit comments

Comments
 (0)