Fix draft pubdate parsing error
This commit is contained in:
parent
63893b0f2e
commit
a2d8371353
2
build.py
2
build.py
|
@ -123,7 +123,7 @@ def main():
|
||||||
page.header.append(aside)
|
page.header.append(aside)
|
||||||
|
|
||||||
# RSS metadata
|
# 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])
|
pubdate = datetime.fromisoformat(meta["pubdate"][0])
|
||||||
link = f"https://www.alogoulogoi.com/{dest.relative_to(out).as_posix()}"
|
link = f"https://www.alogoulogoi.com/{dest.relative_to(out).as_posix()}"
|
||||||
for feed in meta["feed"]:
|
for feed in meta["feed"]:
|
||||||
|
|
Loading…
Reference in New Issue