From 324301aaff4dc1e84e046235e6f490aec44d20b8 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Sun, 12 Feb 2017 08:43:32 +0800 Subject: [PATCH] fix(src): fix route --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 396b8eaa6..f07ef5d86 100644 --- a/src/index.js +++ b/src/index.js @@ -68,6 +68,8 @@ const mainRender = function (cb) { if (!route) { page = OPTIONS.homepage || 'README.md' + } else if (/\.md$/.test(route)) { + page = route } else if (/\/$/.test(route)) { page = `${route}README.md` } else {