fixing link bug, adding this repo as default generator
This commit is contained in:
parent
a8e0f56048
commit
f2707b8b5b
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue