diff options
author | Lucas Fryzek <lucas.fryzek@gmail.com> | 2023-01-20 23:10:26 -0500 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@gmail.com> | 2023-01-20 23:10:26 -0500 |
commit | 3d89393a2fa64dc688fa42458b7610831f3b76f5 (patch) | |
tree | 1fd392a9ba1fa9546de553272844b1cf495dbe9c /tools/rss_gen.py | |
parent | bb646afe42345c405706786108741d5d5fd4798a (diff) |
Fix link bug in rss feed
Diffstat (limited to 'tools/rss_gen.py')
-rwxr-xr-x | tools/rss_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rss_gen.py b/tools/rss_gen.py index c4cc1b0..dc2ad2f 100755 --- a/tools/rss_gen.py +++ b/tools/rss_gen.py @@ -39,7 +39,7 @@ for file in os.listdir(build_dir): for note in notes: post_time = datetime.datetime.strptime("2022-10-30", "%Y-%m-%d") post_rfc_time = email.utils.formatdate(timeval=time.mktime(post_time.timetuple())) - post_url = "{}/notes/{}".format(url, note["name"]) + post_url = "{}/notes/{}.html".format(url, note["name"]) item = ET.SubElement(channel, "item") ET.SubElement(item, "title").text = note["title"] ET.SubElement(item, "link").text = post_url |