added canonicalUrl support
This commit is contained in:
@ -40,6 +40,7 @@ const genFrontMatter = (answers) => {
|
||||
summary: ${answers.summary ? answers.summary : ' '}
|
||||
images: []
|
||||
layout: ${answers.layout}
|
||||
canonical: ${answers.canonical}
|
||||
`
|
||||
|
||||
if (answers.authors.length > 0) {
|
||||
@ -92,6 +93,11 @@ inquirer
|
||||
type: 'list',
|
||||
choices: getLayouts,
|
||||
},
|
||||
{
|
||||
name: 'canonical',
|
||||
message: 'Enter canonical url:',
|
||||
type: 'input',
|
||||
},
|
||||
])
|
||||
.then((answers) => {
|
||||
// Remove special characters and replace space with -
|
||||
|
Reference in New Issue
Block a user