diff --git a/app/c.js b/app/c.js index bdefebc..2bce8a7 100644 --- a/app/c.js +++ b/app/c.js @@ -11,7 +11,9 @@ function captureFrontMatterAndMarkdown() { } else if (k.endsWith('[]')) { formData.set(k, formData.getAll(k)) var s = JSON.stringify(formData.getAll(k)[0].split(",")) - frontmatter += `${k.slice(0, -2)}: ${s}\n` + if (s != "") { + frontmatter += `${k.slice(0, -2)}: ${s}\n` + } } else if (k == "relpath") { filepath = `${location.pathname.split('/public')[0]}/content/${formData.get(k)}` gitpath = `${location.pathname.split('/public')[0]}`