1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-22 11:23:40 +01:00

Switched social plugin to other hook

This commit is contained in:
squidfunk 2025-01-18 09:13:46 +07:00
parent 45f60a6690
commit 6d1ef25146
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class SocialPlugin(BasePlugin[SocialConfig]):
self._image_promises = []
# Create social cards
def on_page_markdown(self, markdown, page, config, files):
def on_page_content(self, html, page, config, files):
if not self.config.cards:
return

View File

@ -163,7 +163,7 @@ class SocialPlugin(BasePlugin[SocialConfig]):
self._image_promises = []
# Create social cards
def on_page_markdown(self, markdown, page, config, files):
def on_page_content(self, html, page, config, files):
if not self.config.cards:
return