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

pull/109/head
Zef Hemel 2022-10-26 09:33:37 +02:00
parent 590440748b
commit 2b06af6147
1 changed files with 5 additions and 0 deletions

View File

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