compilar: arreglar lista de páginas
All checks were successful
repro-run Corre repro-run.json

This commit is contained in:
Cat /dev/Nulo 2023-02-10 10:32:50 -03:00
parent 19218f98e4
commit 9b4ffccef1

View file

@ -234,7 +234,7 @@ async function compilePageList(config: Config, pageList: string[]) {
ul(
...pageList
.sort((a, b) => a.localeCompare(b, "es", { sensitivity: "base" }))
.map((name) => li(a({ href: `${name}.html` }, name)))
.map((name) => li(a({ href: encodeURI(`${name}.html`) }, name)))
)
);
await writeFile(outputPath, html);