Fix search path

This commit is contained in:
delliott 2024-08-22 15:36:55 +02:00
parent 7776c68a73
commit c8a0c522c9
Signed by: delliott
SSH Key Fingerprint: SHA256:h5IC6Ec/o6ypmpM7ZdRqULGyG8dz4Jr5K192BAWAjoo

View File

@ -69,7 +69,7 @@ def process_file(filename: str):
]
articles.append(
{
"url": "https://fsfe.org/" + filename.replace("xhtml", "html"),
"url": "https://fsfe.org/" + filename.removeprefix("fsfe.org/").replace("xhtml", "html"),
"tags": " ".join(tags),
"title": file_parsed.title.text,
"teaser": " ".join(