Output frontmatter id as integer

This commit is contained in:
Will Boyd
2025-02-08 12:36:08 -05:00
parent 1524e052bb
commit a645b2bfdc
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -83,6 +83,9 @@ async function loadMarkdownFilePromise(post) {
// array of one or more strings
outputValue = value.reduce((list, item) => `${list}\n - "${item}"`, '');
}
} else if (Number.isInteger(value)) {
// output unquoted
outputValue = value.toString();
} else if (value instanceof luxon.DateTime) {
if (shared.config.customDateFormatting) {
outputValue = value.toFormat(shared.config.customDateFormatting);