mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-30 09:43:05 -04:00
Fixed disabling of social cards
This commit is contained in:
@@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
||||
# Retrieve configuration
|
||||
def on_config(self, config):
|
||||
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:
|
||||
return
|
||||
|
||||
|
||||
@@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
||||
# Retrieve configuration
|
||||
def on_config(self, config):
|
||||
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:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user