fix sitemap

This commit is contained in:
Varuna Jayasiri
2021-06-22 10:18:51 +05:30
parent c631cd3c58
commit a969c6cc79
3 changed files with 5 additions and 310 deletions

View File

@ -14,6 +14,9 @@ def collect(path: Path):
return []
html = path.relative_to(HOME)
if html.suffix not in {'.py'}:
return []
if html.stem == '__init__':
html = html.parent / 'index.html'
else: