Skip to content

Commit 827fe80

Browse files
committed
Update python-sitemap.py
1 parent 64dc134 commit 827fe80

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
@@ -8,6 +8,9 @@ def generate_sitemap():
88

99
# Find all HTML and MD files in _posts/python
1010
for file_path in Path("_posts/python").rglob("*.[hm][td]*"):
11+
# Skip files in redir directory
12+
if "redir" in file_path.parts:
13+
continue
1114
try:
1215
post = frontmatter.load(file_path)
1316
if 'permalink' in post:

0 commit comments

Comments
 (0)