We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b8fa1 commit e8b746aCopy full SHA for e8b746a
hooks/socialmedia.py
@@ -13,12 +13,11 @@ def on_page_markdown(markdown, **kwargs):
13
if not include.match(page.url):
14
return markdown
15
16
- page_url = config.site_url + page.url
+ page_url = f"{config.site_url}/{page.url}"
17
page_title = urllib.parse.quote(page.title + "\n")
18
19
return markdown + dedent(
20
f"""
21
[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 }}
23
"""
24
)
0 commit comments