From 9b4ffccef130b30cc6bda7dae0a29eaaf2cbbfc7 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 10 Feb 2023 10:32:50 -0300 Subject: [PATCH] =?UTF-8?q?compilar:=20arreglar=20lista=20de=20p=C3=A1gina?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compilar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilar.ts b/compilar.ts index dae7636..d13dbd2 100644 --- a/compilar.ts +++ b/compilar.ts @@ -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);