Compare commits
No commits in common. "c2f147e3f9d782f0535635caca2ad2ae040febcc" and "67a9b68cfc3293bedd7832b633ec10d33b307d7d" have entirely different histories.
c2f147e3f9
...
67a9b68cfc
@ -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")),
|
filter(lambda tag: tag.get("key") != "front-page", xslt_root.xpath("//tag")),
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
"url": f"/{file.with_suffix('.html').relative_to(file.parents[-2])}",
|
"url": f"/{file.with_suffix('.html')}",
|
||||||
"tags": " ".join(tags),
|
"tags": " ".join(tags),
|
||||||
"title": (
|
"title": (
|
||||||
xslt_root.xpath("//html//title")[0].text
|
xslt_root.xpath("//html//title")[0].text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user