From dd0c84bb40b1956310611b005d7cfd77d2cba459 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Mon, 13 Feb 2017 23:21:27 +0800 Subject: [PATCH] fix(index): cover page --- CHANGELOG.md | 7 +++++++ src/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8381b162..da5e780c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### 2.4.1 + +> 2017-02-13 + +#### Bug fixes +- fix(index): cover page. + ### 2.4.0 > 2017-02-13 diff --git a/src/index.js b/src/index.js index 75243a662..1a9ee3323 100644 --- a/src/index.js +++ b/src/index.js @@ -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) }