Browse Source

✏️ Fix typo in `scripts/mkdocs_hooks.py` (#14457)

pull/12972/head
Yuji Teshima 6 months ago
committed by GitHub
parent
commit
5b6245666b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      scripts/mkdocs_hooks.py

2
scripts/mkdocs_hooks.py

@ -132,7 +132,7 @@ def on_pre_page(page: Page, *, config: MkDocsConfig, files: Files) -> Page:
def on_page_markdown(
markdown: str, *, page: Page, config: MkDocsConfig, files: Files
) -> str:
# Set matadata["social"]["cards_layout_options"]["title"] to clean title (without
# Set metadata["social"]["cards_layout_options"]["title"] to clean title (without
# permalink)
title = page.title
clean_title = title.split("{ #")[0]

Loading…
Cancel
Save