File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export class Compiler {
211
211
! _self . matchNotCompileLink ( href ) &&
212
212
! config . ignore
213
213
) {
214
- if ( href === _self . config . homepage ) href = '/ '
214
+ if ( href === _self . config . homepage ) href = 'README '
215
215
href = router . toURL ( href , null , router . getCurrentPath ( ) )
216
216
} else {
217
217
attrs += ` target="${ linkTarget } "`
Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ export class History {
35
35
return this . config . basePath
36
36
}
37
37
38
- getFile ( path , isRelative ) {
39
- path = path || this . getCurrentPath ( )
40
-
38
+ getFile ( path = this . getCurrentPath ( ) , isRelative ) {
41
39
const { config } = this
42
40
const base = this . getBasePath ( )
43
41
const ext = typeof config . ext !== 'string' ? '.md' : config . ext
You can’t perform that action at this time.
0 commit comments