0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 08:52:38 +00:00

Partial implementation

This commit is contained in:
David Bolack
2024-11-01 14:02:27 -05:00
parent bb057ba057
commit 4448410c3e
6 changed files with 75 additions and 3 deletions

View File

@@ -170,6 +170,12 @@ const api = {
`\`\`\`\n\n` +
`${text}`;
}
if(brew.snippets !== undefined) {
text = `\`\`\`snippets\n` +
`${brew.snippets || ''}\n` +
`\`\`\`\n\n` +
`${text}`;
}
const metadata = _.pick(brew, ['title', 'description', 'tags', 'systems', 'renderer', 'theme']);
text = `\`\`\`metadata\n` +
`${yaml.dump(metadata)}\n` +