This commit is contained in:
parent
67a9b68cfc
commit
c88443a633
@ -46,7 +46,7 @@ def _process_file(file: Path, stopwords: set[str]) -> dict:
|
||||
filter(lambda tag: tag.get("key") != "front-page", xslt_root.xpath("//tag")),
|
||||
)
|
||||
return {
|
||||
"url": f"/{file.with_suffix('.html')}",
|
||||
"url": f"/{file.with_suffix('.html').relative_to(file.parents[-2])}",
|
||||
"tags": " ".join(tags),
|
||||
"title": (
|
||||
xslt_root.xpath("//html//title")[0].text
|
||||
|
Loading…
x
Reference in New Issue
Block a user