fix(src): fix route
This commit is contained in:
parent
6b30eb65eb
commit
324301aaff
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ const mainRender = function (cb) {
|
||||||
|
|
||||||
if (!route) {
|
if (!route) {
|
||||||
page = OPTIONS.homepage || 'README.md'
|
page = OPTIONS.homepage || 'README.md'
|
||||||
|
} else if (/\.md$/.test(route)) {
|
||||||
|
page = route
|
||||||
} else if (/\/$/.test(route)) {
|
} else if (/\/$/.test(route)) {
|
||||||
page = `${route}README.md`
|
page = `${route}README.md`
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue