fixing link bug, adding this repo as default generator

This commit is contained in:
Dominic DiTaranto 2026-04-17 20:11:25 -04:00
parent a8e0f56048
commit f2707b8b5b
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ URL = ""
DESCRIPTION = "" DESCRIPTION = ""
# Please link back to me :) # Please link back to me :)
GENERATOR = "" GENERATOR = "https://git.domdit.com/dominic/rss-generator"
# Language of your website # Language of your website
LANGUAGE = "en-us" LANGUAGE = "en-us"

View file

@ -89,7 +89,7 @@ class RSSGenerator:
link = ET.SubElement(self.channel, "{http://www.w3.org/2005/Atom}link") link = ET.SubElement(self.channel, "{http://www.w3.org/2005/Atom}link")
link.set("rel", "self") 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") link.set("type", "application/atom+xml")
desc = ET.SubElement(self.channel, "description") desc = ET.SubElement(self.channel, "description")