don't add tags if there are none...
This commit is contained in:
parent
16193a2e7e
commit
66c46c2846
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ async function handleLol(body, env) {
|
|||
// weblog has some quirks with its yaml interpretation
|
||||
frontmatterString = frontmatterString
|
||||
.replace(/{\n/, '').replace(/}\n/, '').replace(/^\s\s/gm, '').replace(/,$/gm, '')
|
||||
.replace(/\ntags: \[\]$/m, '')
|
||||
.replace(/^tags: \[ (.*) \]$/m, "tags: $1")
|
||||
.replace(/^title: "(.*)"$/m, "title: $1")
|
||||
|
||||
|
|
Loading…
Reference in a new issue