From d927597c1eefd1637584bf50b86cf282d90e88c0 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 20 Jul 2018 11:41:24 -0400 Subject: [PATCH] doh --- src/core/create_routes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/create_routes.ts b/src/core/create_routes.ts index 883f8d1..14e2040 100644 --- a/src/core/create_routes.ts +++ b/src/core/create_routes.ts @@ -129,6 +129,9 @@ export default function create_routes(cwd = locations.routes()) { else if (item.basename === 'index.html') { const is_branch = items.some(other_item => { if (other_item === item) return false; + if (other_item.basename[0] === '_') { + return other_item.basename === (other_item.is_dir ? '_default' : '_default.html'); + } if (other_item.is_dir) { return fs.existsSync(path.join(dir, other_item.basename, 'index.html'));