mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo in `scripts/mkdocs_hooks.py` (#14457)
This commit is contained in:
parent
dbd34f1578
commit
5b6245666b
|
|
@ -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…
Reference in New Issue