mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed crashing of social plugin when cards are disabled
This commit is contained in:
parent
491bd0af5c
commit
c8fb426d98
@ -165,6 +165,9 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
||||
page.meta["meta"] = meta + self._generate_meta(page, config)
|
||||
|
||||
def on_post_build(self, config):
|
||||
if not self.config.cards:
|
||||
return
|
||||
|
||||
# Check for exceptions
|
||||
for promise in self._image_promises:
|
||||
promise.result()
|
||||
|
@ -165,6 +165,9 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
||||
page.meta["meta"] = meta + self._generate_meta(page, config)
|
||||
|
||||
def on_post_build(self, config):
|
||||
if not self.config.cards:
|
||||
return
|
||||
|
||||
# Check for exceptions
|
||||
for promise in self._image_promises:
|
||||
promise.result()
|
||||
|
Loading…
Reference in New Issue
Block a user