1
0

Rename "name" frontmatter to "displayName" not to clash with builtin name

This commit is contained in:
Zef Hemel 2022-10-26 09:33:37 +02:00
parent 590440748b
commit 2b06af6147

View File

@ -144,6 +144,11 @@ export function extractMeta(
return undefined; return undefined;
}); });
if (data.name) {
data.displayName = data.name;
delete data.name;
}
return data; return data;
} }