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'));