feat(render): add ext option for custom file extenstion, close #340

This commit is contained in:
qingwei.li
2018-02-11 22:22:06 +08:00
committed by cinwell.li
parent 54ab4c9ff7
commit 248aa72cd2
7 changed files with 46 additions and 63 deletions
+2 -2
View File
@@ -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