mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 13:26:34 +10:00
bump: 2.4.2
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
### 2.4.2
|
||||
|
||||
> 2017-02-14
|
||||
|
||||
#### Bug fixes
|
||||
- fix(index): load file path error
|
||||
|
||||
|
||||
### 2.4.1
|
||||
|
||||
> 2017-02-13
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||

|
||||
|
||||
# docsify <small>2.4.1</small>
|
||||
# docsify <small>2.4.2</small>
|
||||
|
||||
> A magical documentation site generator.
|
||||
|
||||
|
||||
+3
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user