Commit
+4 -1 +/-1 browse
1 | diff --git a/render.py b/render.py |
2 | index 835b254..43bd56a 100755 |
3 | --- a/render.py |
4 | +++ b/render.py |
5 | @@ -155,12 +155,15 @@ def generate_rss(sitemap): |
6 | description.text = "Blog of Kevin Schoon" |
7 | |
8 | for entry in sitemap["by_name"]["/blog"]["others"]: |
9 | + absolute_url = "https://kevinschoon.com/blog/" + entry["name"] |
10 | item = ET.SubElement(channel, "item") |
11 | title_item = ET.SubElement(item, "title") |
12 | link_item = ET.SubElement(item, "link") |
13 | + guid_item = ET.SubElement(item, "guid") |
14 | + guid_item.text = absolute_url |
15 | description_item = ET.SubElement(item, "description") |
16 | title_item.text = entry["name"] |
17 | - link_item.attrib["href"] = "https://kevinschoon.com/blog/" + entry["name"] |
18 | + link_item.attrib["href"] = absolute_url |
19 | description_item.text = entry["tagline"] |
20 | |
21 | xml_str = ET.tostring(rss, xml_declaration=True, encoding="utf-8", method="xml") |