Rename "name" frontmatter to "displayName" not to clash with builtin name
parent
590440748b
commit
2b06af6147
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue