Skip to content

Commit

Permalink
fix(index): cover page
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 13, 2017
1 parent 02022af commit dd0c84b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
### 2.4.1

> 2017-02-13
#### Bug fixes
- fix(index): cover page.

### 2.4.0

> 2017-02-13
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -90,7 +90,7 @@ const mainRender = function (cb) {
}

// Render Cover page
if (OPTIONS.coverpage && page === OPTIONS.homepage) {
if (OPTIONS.coverpage && page === ('/' + OPTIONS.homepage).replace(/\/+/, '/')) {
utils.load(OPTIONS.coverpage).then(render.renderCover)
}

Expand Down

0 comments on commit dd0c84b

Please sign in to comment.