retain xml tags when replacing date

use correct domain in links
This commit is contained in:
Pim Kunis 2024-04-22 23:41:31 +02:00
parent 0051889d04
commit f7161cc47f
2 changed files with 5 additions and 2 deletions

View file

@ -43,7 +43,10 @@ def main():
print( print(
re.sub( re.sub(
updated_pattern, newest_datetime.strftime(datetime_pattern), feed, count=1 updated_pattern,
f"<updated>{newest_datetime.strftime(datetime_pattern)}</updated>",
feed,
count=1,
), ),
end="", end="",
) )

View file

@ -12,7 +12,7 @@ author:
username: pim username: pim
avatar: /assets/img/avatar.jpg avatar: /assets/img/avatar.jpg
url: "https://pim.kunis.nl" url: "https://pim.kun.is"
baseurl: "/" baseurl: "/"
permalink: /:title/ permalink: /:title/