From a2d837135389d631fea96fe9699445a1924b1048 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 18 Dec 2023 09:50:50 -0800 Subject: [PATCH] Fix draft pubdate parsing error --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 9cfa2a1..9a204d8 100755 --- a/build.py +++ b/build.py @@ -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"]: