Fix for coverImage empty string

This commit is contained in:
Will Boyd
2024-02-23 13:07:20 -05:00
parent 3a5ea10cb9
commit 3e8dd285b2
+3 -1
View File
@@ -85,7 +85,9 @@ async function loadMarkdownFilePromise(post) {
} else { } else {
// single string value // single string value
const escapedValue = (value || '').replace(/"/g, '\\"'); const escapedValue = (value || '').replace(/"/g, '\\"');
outputValue = `"${escapedValue}"`; if (escapedValue.length > 0) {
outputValue = `"${escapedValue}"`;
}
} }
if (outputValue !== undefined) { if (outputValue !== undefined) {