added ☒ to Has_* to indicate click would remove it...

This commit is contained in:
Marcell Mars 2021-04-09 00:51:00 +02:00
parent 254dd21d51
commit 8e688abe3c
1 changed files with 2 additions and 2 deletions

View File

@ -10,14 +10,14 @@ function captureFrontMatterAndMarkdown() {
}
} else if (k.endsWith('[]')) {
formData.set(k, formData.getAll(k))
var s = JSON.stringify(formData.getAll(k)[0].split(","))
var s = JSON.stringify(formData.getAll(k)[0].split(" ☒").join("").split(","))
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]}`
} else if (k == "relpermalink") {
publishpath = `${location.pathname.split('/public')[0]}/public${formData.get(k)}index.html`
} else if (["protocol", "offline"].includes(k)) {
} else if (["protocol", "offline", "ignore"].includes(k)) {
continue
} else {
var s = JSON.stringify(formData.get(k))