This commit is contained in:
Rich Harris
2018-07-17 18:17:14 -04:00
parent 99b4cd43b9
commit aa92342e71

View File

@@ -130,8 +130,8 @@ export default function create_routes(cwd = locations.routes()) {
const is_branch = items.some(other_item => {
if (other_item === item) return false;
if (item.is_dir) {
return fs.existsSync(path.join(dir, item.basename, 'index.html'));
if (other_item.is_dir) {
return fs.existsSync(path.join(dir, other_item.basename, 'index.html'));
}
return other_item.is_page;