diff --git a/config.py b/config.py index a38f666..bf213e9 100644 --- a/config.py +++ b/config.py @@ -9,7 +9,7 @@ URL = "" DESCRIPTION = "" # Please link back to me :) -GENERATOR = "" +GENERATOR = "https://git.domdit.com/dominic/rss-generator" # Language of your website LANGUAGE = "en-us" diff --git a/generator.py b/generator.py index a7575b0..e374099 100644 --- a/generator.py +++ b/generator.py @@ -89,7 +89,7 @@ class RSSGenerator: link = ET.SubElement(self.channel, "{http://www.w3.org/2005/Atom}link") link.set("rel", "self") - link.set("href", f"{URL}/{self.output_path}") + link.set("href", f"{URL}/{self.output_path}".replace('../', '')) link.set("type", "application/atom+xml") desc = ET.SubElement(self.channel, "description")