mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06: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
|
||||
if (!fontsPromise) {
|
||||
if (!fontsPromise && cfg.generateSocialImages) {
|
||||
fontsPromise = getSatoriFont(cfg.theme.typography.header, cfg.theme.typography.body)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user