Skip to content

Commit e8b746a

Browse files
committed
docs: update files
1 parent 62b8fa1 commit e8b746a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hooks/socialmedia.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ def on_page_markdown(markdown, **kwargs):
1313
if not include.match(page.url):
1414
return markdown
1515

16-
page_url = config.site_url + page.url
16+
page_url = f"{config.site_url}/{page.url}"
1717
page_title = urllib.parse.quote(page.title + "\n")
1818

1919
return markdown + dedent(
2020
f"""
2121
[Share on :simple-x:]({x_intent}?text={page_title}&url={page_url}){{ .md-button }}
22-
[Share on :simple-facebook:]({fb_sharer}?u={page_url}){{ .md-button }}
2322
"""
2423
)

0 commit comments

Comments
 (0)