upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit 50869bac5e - Show all commits

View File

@ -33,11 +33,11 @@ const genFrontMatter = (answers) => {
const authorArray = answers.authors.length > 0 ? "'" + answers.authors.join("','") + "'" : '' const authorArray = answers.authors.length > 0 ? "'" + answers.authors.join("','") + "'" : ''
let frontMatter = dedent`--- let frontMatter = dedent`---
title: ${answers.title ? answers.title : 'Untitled'} title: "${answers.title ? answers.title : 'Untitled'}"
date: '${date}' date: '${date}'
tags: [${answers.tags ? tags : ''}] tags: [${answers.tags ? tags : ''}]
draft: ${answers.draft === 'yes' ? true : false} draft: ${answers.draft === 'yes' ? true : false}
summary: ${answers.summary ? answers.summary : ' '} summary: "${answers.summary ? answers.summary : ' '}"
images: [] images: []
layout: ${answers.layout} layout: ${answers.layout}
canonicalUrl: ${answers.canonicalUrl} canonicalUrl: ${answers.canonicalUrl}