Skip to content

Commit

Permalink
Switched social plugin to other hook
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jan 18, 2025
1 parent 45f60a6 commit 6d1ef25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def on_config(self, config):
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

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def on_config(self, config):
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

Expand Down

0 comments on commit 6d1ef25

Please sign in to comment.