1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-18 18:36:07 +01:00

Fixed disabling of social cards

This commit is contained in:
squidfunk 2024-12-06 21:13:18 +01:00
parent 6c796c06ec
commit a7dc57c239
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 4 additions and 2 deletions

View File

@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
# Retrieve configuration # Retrieve configuration
def on_config(self, config): def on_config(self, config):
self.color = colors.get("indigo") self.color = colors.get("indigo")
self.config.cards = self.config.enabled if not self.config.enabled:
self.config.cards = False
if not self.config.cards: if not self.config.cards:
return return

View File

@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
# Retrieve configuration # Retrieve configuration
def on_config(self, config): def on_config(self, config):
self.color = colors.get("indigo") self.color = colors.get("indigo")
self.config.cards = self.config.enabled if not self.config.enabled:
self.config.cards = False
if not self.config.cards: if not self.config.cards:
return return