mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed regression in config deprecation in social plugin
This commit is contained in:
parent
a22f39b166
commit
d8a0e36ce3
@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Move color options
|
# Move color options
|
||||||
if "cards_color" in self.config:
|
if self.config.cards_color:
|
||||||
|
|
||||||
# Move background color to new option
|
# Move background color to new option
|
||||||
value = self.config.cards_color.get("fill")
|
value = self.config.cards_color.get("fill")
|
||||||
@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
|||||||
self.config.cards_layout_options["color"] = value
|
self.config.cards_layout_options["color"] = value
|
||||||
|
|
||||||
# Move font family to new option
|
# Move font family to new option
|
||||||
if "cards_font" in self.config:
|
if self.config.cards_font:
|
||||||
value = self.config.cards_font
|
value = self.config.cards_font
|
||||||
self.config.cards_layout_options["font_family"] = value
|
self.config.cards_layout_options["font_family"] = value
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Move color options
|
# Move color options
|
||||||
if "cards_color" in self.config:
|
if self.config.cards_color:
|
||||||
|
|
||||||
# Move background color to new option
|
# Move background color to new option
|
||||||
value = self.config.cards_color.get("fill")
|
value = self.config.cards_color.get("fill")
|
||||||
@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
|||||||
self.config.cards_layout_options["color"] = value
|
self.config.cards_layout_options["color"] = value
|
||||||
|
|
||||||
# Move font family to new option
|
# Move font family to new option
|
||||||
if "cards_font" in self.config:
|
if self.config.cards_font:
|
||||||
value = self.config.cards_font
|
value = self.config.cards_font
|
||||||
self.config.cards_layout_options["font_family"] = value
|
self.config.cards_layout_options["font_family"] = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user