mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 15:42:48 +00:00
Minor cleanup
This commit is contained in:
parent
fd01449db2
commit
cf5ee95a48
|
|
@ -58,7 +58,6 @@ function extractMetadata(content) {
|
|||
const keyvalue = lines[i].split(":");
|
||||
const key = keyvalue[0].trim();
|
||||
let value = keyvalue.slice(1).join(":").trim();
|
||||
// Handle the case where you have "Community #10"
|
||||
try {
|
||||
value = JSON.parse(value);
|
||||
} catch (e) {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue