feat: prototype custom pages site generation

This commit is contained in:
endiliey 2018-08-08 01:33:25 +08:00
parent cf08a20737
commit bc7b2835b0
8 changed files with 78 additions and 9 deletions

View file

@ -13,7 +13,7 @@ async function generate(file, content) {
}
}
const indexRE = /(^|.*\/)index\.md$/i;
const indexRE = /(^|.*\/)index\.(md|js)$/i;
const mdRE = /\.md$/;
function fileToPath(file) {