Skip to content

Commit 50869ba

Browse files
authored
Merge pull request #621 from silent1mezzo/master
Add quotes to title and summary
2 parents 5326015 + 96b7b3d commit 50869ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/compose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const genFrontMatter = (answers) => {
3333
const authorArray = answers.authors.length > 0 ? "'" + answers.authors.join("','") + "'" : ''
3434

3535
let frontMatter = dedent`---
36-
title: ${answers.title ? answers.title : 'Untitled'}
36+
title: "${answers.title ? answers.title : 'Untitled'}"
3737
date: '${date}'
3838
tags: [${answers.tags ? tags : ''}]
3939
draft: ${answers.draft === 'yes' ? true : false}
40-
summary: ${answers.summary ? answers.summary : ' '}
40+
summary: "${answers.summary ? answers.summary : ' '}"
4141
images: []
4242
layout: ${answers.layout}
4343
canonicalUrl: ${answers.canonicalUrl}

0 commit comments

Comments
 (0)