1
0
Fork 0

Fix draft pubdate parsing error

This commit is contained in:
Tim Van Baak 2023-12-18 09:50:50 -08:00
parent 63893b0f2e
commit a2d8371353
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ def main():
page.header.append(aside)
# RSS metadata
if "feed" in meta and "pubdate" in meta:
if "feed" in meta and "pubdate" in meta and meta["pubdate"][0] != "draft":
pubdate = datetime.fromisoformat(meta["pubdate"][0])
link = f"https://www.alogoulogoi.com/{dest.relative_to(out).as_posix()}"
for feed in meta["feed"]: