mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-17 09:16:07 +10:00
feat(render): add ext option for custom file extenstion, close #340
This commit is contained in:
@@ -81,10 +81,10 @@ export function fetchMixin (proto) {
|
||||
path = coverpage
|
||||
}
|
||||
} else if (Array.isArray(coverpage)) {
|
||||
path = coverpage.indexOf(routePath) > -1 && '_coverpage.md'
|
||||
path = coverpage.indexOf(routePath) > -1 && '_coverpage'
|
||||
} else {
|
||||
const cover = coverpage[routePath]
|
||||
path = cover === true ? '_coverpage.md' : cover
|
||||
path = cover === true ? '_coverpage' : cover
|
||||
}
|
||||
|
||||
this.coverEnable = !!path
|
||||
|
||||
Reference in New Issue
Block a user