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:
parent
45f60a6690
commit
6d1ef25146
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user