mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
fix(open-graph): only load satori font if config option is enabled
This commit is contained in:
parent
635c47560b
commit
9cc29fccd5
@ -68,7 +68,7 @@ export default (() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Memoize google fonts
|
// Memoize google fonts
|
||||||
if (!fontsPromise) {
|
if (!fontsPromise && cfg.generateSocialImages) {
|
||||||
fontsPromise = getSatoriFont(cfg.theme.typography.header, cfg.theme.typography.body)
|
fontsPromise = getSatoriFont(cfg.theme.typography.header, cfg.theme.typography.body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user