Rename "name" frontmatter to "displayName" not to clash with builtin name
This commit is contained in:
parent
590440748b
commit
2b06af6147
@ -144,6 +144,11 @@ export function extractMeta(
|
||||
return undefined;
|
||||
});
|
||||
|
||||
if (data.name) {
|
||||
data.displayName = data.name;
|
||||
delete data.name;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user