Skip to content

Commit 470d409

Browse files
committed
fix(integration): IS8BLOG_PLUGIN_ENABLED was not correctly use
1 parent e6da720 commit 470d409

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mkdocs_rss_plugin/integrations/theme_material_social_plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def __init__(self, mkdocs_config: MkDocsConfig, switch_force: bool = True) -> No
9191
self.social_cards_cache_dir = self.get_social_cards_cache_dir(
9292
mkdocs_config=mkdocs_config
9393
)
94-
self.is_blog_plugin_enabled_mkdocs(mkdocs_config=mkdocs_config)
94+
self.IS_BLOG_PLUGIN_ENABLED = self.is_blog_plugin_enabled_mkdocs(
95+
mkdocs_config=mkdocs_config
96+
)
9597
if self.is_mkdocs_theme_material_insiders():
9698
self.load_cache_cards_manifest()
9799

@@ -145,6 +147,7 @@ def is_blog_plugin_enabled_mkdocs(self, mkdocs_config: MkDocsConfig) -> bool:
145147

146148
if not mkdocs_config.plugins.get("material/blog"):
147149
logger.debug("Material blog plugin is not listed in configuration.")
150+
self.IS_BLOG_PLUGIN_ENABLED = False
148151
return False
149152

150153
self.blog_plugin_cfg: BlogPlugin | None = mkdocs_config.plugins.get(
@@ -157,7 +160,7 @@ def is_blog_plugin_enabled_mkdocs(self, mkdocs_config: MkDocsConfig) -> bool:
157160
return False
158161

159162
logger.debug("Material blog plugin is enabled in Mkdocs configuration.")
160-
self.IS_SOCIAL_PLUGIN_CARDS_ENABLED = True
163+
self.IS_BLOG_PLUGIN_ENABLED = True
161164
return True
162165

163166
def is_social_plugin_enabled_mkdocs(self, mkdocs_config: MkDocsConfig) -> bool:

0 commit comments

Comments
 (0)