diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index c2ad516a0..565ab00a2 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): return # Move color options - if "cards_color" in self.config: + if self.config.cards_color: # Move background color to new option value = self.config.cards_color.get("fill") @@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): self.config.cards_layout_options["color"] = value # Move font family to new option - if "cards_font" in self.config: + if self.config.cards_font: value = self.config.cards_font self.config.cards_layout_options["font_family"] = value diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index c2ad516a0..565ab00a2 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): return # Move color options - if "cards_color" in self.config: + if self.config.cards_color: # Move background color to new option value = self.config.cards_color.get("fill") @@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): self.config.cards_layout_options["color"] = value # Move font family to new option - if "cards_font" in self.config: + if self.config.cards_font: value = self.config.cards_font self.config.cards_layout_options["font_family"] = value