Fix search path

This commit is contained in:
2024-08-22 15:36:55 +02:00
parent 7776c68a73
commit c8a0c522c9

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(