mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 04:38:11 +00:00
let mongo systems and tags override google drive's
This commit is contained in:
@@ -91,7 +91,7 @@ const splitTextStyleAndMetadata = (brew)=>{
|
|||||||
const index = brew.text.indexOf('\n```\n\n');
|
const index = brew.text.indexOf('\n```\n\n');
|
||||||
const metadataSection = brew.text.slice(11, index + 1);
|
const metadataSection = brew.text.slice(11, index + 1);
|
||||||
const metadata = yaml.load(metadataSection);
|
const metadata = yaml.load(metadataSection);
|
||||||
Object.assign(brew, _.pick(metadata, ['title', 'description', 'tags', 'systems', 'renderer', 'theme', 'lang']));
|
Object.assign(brew, _.pick(metadata, ['title', 'description', 'renderer', 'theme', 'lang']));
|
||||||
brew.snippets = yamlSnippetsToText(_.pick(metadata, ['snippets']).snippets || '');
|
brew.snippets = yamlSnippetsToText(_.pick(metadata, ['snippets']).snippets || '');
|
||||||
brew.text = brew.text.slice(index + 6);
|
brew.text = brew.text.slice(index + 6);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user