mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
fix: homepage link
This commit is contained in:
@@ -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}"`
|
||||
|
||||
@@ -35,9 +35,7 @@ export class History {
|
||||
return this.config.basePath
|
||||
}
|
||||
|
||||
getFile (path, isRelative) {
|
||||
path = path || this.getCurrentPath()
|
||||
|
||||
getFile (path = this.getCurrentPath(), isRelative) {
|
||||
const { config } = this
|
||||
const base = this.getBasePath()
|
||||
const ext = typeof config.ext !== 'string' ? '.md' : config.ext
|
||||
|
||||
Reference in New Issue
Block a user