Skip to content

Commit 4583883

Browse files
committed
Update python-sitemap.py
1 parent 42c723a commit 4583883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python-sitemap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def generate_sitemap():
1414
permalink = post['permalink']
1515
# Use permalink as-is if it has a domain, otherwise prepend base_url
1616
url = permalink if permalink.startswith(('http://', 'https://')) else f"{base_url}/{permalink}"
17+
# Skip dash.plotly.com URLs
18+
if 'dash.plotly.com' in url:
19+
continue
1720
urls.append(url)
1821
except:
1922
pass

0 commit comments

Comments
 (0)