fix(open-graph): only load satori font if config option is enabled

This commit is contained in:
Ben Schlegel 2024-11-10 14:43:41 +01:00
parent 635c47560b
commit 9cc29fccd5
No known key found for this signature in database
GPG Key ID: 8BDB8891C1575E22

View File

@ -68,7 +68,7 @@ export default (() => {
}
// Memoize google fonts
if (!fontsPromise) {
if (!fontsPromise && cfg.generateSocialImages) {
fontsPromise = getSatoriFont(cfg.theme.typography.header, cfg.theme.typography.body)
}