aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2024-08-11 22:53:54 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2024-08-11 22:53:54 -0400
commit7449d34901d48bd2547d73e7846213118b377997 (patch)
treeeda7bf12179ac93fa3c552968b3d995530ae8ace
parentde061b589dc4d8fc2f8a9866ea183f565b284cf9 (diff)
downloadnotekins-7449d34901d48bd2547d73e7846213118b377997.tar.xz
Fix atom generation.
-rw-r--r--utils/atomgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/atomgen.py b/utils/atomgen.py
index 453465d..7b37cfb 100644
--- a/utils/atomgen.py
+++ b/utils/atomgen.py
@@ -33,7 +33,7 @@ def gen_atom():
dates = list(reversed(m.get_all_dates()[-conf.ATOM_NPOSTS:]))
for d in dates:
p = m.get_post(d)
- link = f"{conf.SERVED_DATA_ROOT}/?post={p.date}"
+ link = f"{conf.ATOM_ROOT}/?post={p.date}"
title = ellide(remove_tags(p.content), 32)
date = datetime.fromtimestamp(p.date, timezone.utc).replace(microsecond=0).isoformat()
xmlbuf += f'<entry>'