Update compose.js
This commit is contained in:
parent
ac7d1c29cd
commit
3d8a153839
@ -101,7 +101,7 @@ inquirer
|
||||
.replace(/ /g, '-')
|
||||
.replace(/-+/g, '-')
|
||||
const frontMatter = genFrontMatter(answers)
|
||||
if (!fs.existsSync('data/blog', { recursive: true })) fs.mkdirSync('data/blog')
|
||||
if (!fs.existsSync('data/blog')) fs.mkdirSync('data/blog', { recursive: true })
|
||||
const filePath = `data/blog/${fileName ? fileName : 'untitled'}.${
|
||||
answers.extension ? answers.extension : 'md'
|
||||
}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user