Yuji Teshima
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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] |
|
|
|
|