bump: 2.4.2

This commit is contained in:
qingwei.li
2017-02-14 10:23:08 +08:00
parent dc536a3930
commit eff6d21539
4 changed files with 13 additions and 6 deletions

View File

@@ -2938,9 +2938,8 @@ var mainRender = function (cb) {
}
// replace route
route = '/' + route;
if (OPTIONS.alias && OPTIONS.alias[route]) {
route = getAlias(route);
if (OPTIONS.alias && OPTIONS.alias['/' + route]) {
route = getAlias('/' + route);
} else {
route = (OPTIONS.basePath + route).replace(/\/+/, '/');
}
@@ -2956,7 +2955,7 @@ var mainRender = function (cb) {
}
// Render Cover page
if (OPTIONS.coverpage && page === ('/' + OPTIONS.homepage).replace(/\/+/, '/')) {
if (OPTIONS.coverpage && page === OPTIONS.homepage) {
load(OPTIONS.coverpage).then(renderCover);
}

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long