chore: fix typo
This commit is contained in:
parent
5d68b47bac
commit
3fe3b03e3c
@ -32,7 +32,7 @@ inquirer
|
||||
type: 'input',
|
||||
},
|
||||
{
|
||||
name: 'extention',
|
||||
name: 'extension',
|
||||
message: 'Choose post extension:',
|
||||
type: 'list',
|
||||
choices: ['mdx', 'md'],
|
||||
@ -63,7 +63,7 @@ inquirer
|
||||
.replace(/-+/g, '-')
|
||||
const frontMatter = genFrontMatter(answers)
|
||||
const filePath = `data/blog/${fileName ? fileName : 'untitled'}.${
|
||||
answers.extention ? answers.extention : 'md'
|
||||
answers.extension ? answers.extension : 'md'
|
||||
}`
|
||||
fs.writeFile(filePath, frontMatter, { flag: 'wx' }, (err) => {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user