We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5bad8 commit 4a41666Copy full SHA for 4a41666
python-sitemap.py
@@ -13,7 +13,7 @@ def generate_sitemap():
13
if 'permalink' in post:
14
permalink = post['permalink']
15
# Use permalink as-is if it has a domain, otherwise prepend base_url
16
- url = permalink if permalink.startswith(('http://', 'https://')) else f"{base_url}/{permalink}"
+ url = permalink if permalink.startswith(('http://', 'https://')) else f"{base_url}/{permalink.lstrip('/')}"
17
# Skip dash.plotly.com URLs
18
if 'dash.plotly.com' in url:
19
continue
0 commit comments