compilar: Ordenar Lista de páginas
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

fixes #2
This commit is contained in:
Cat /dev/Nulo 2022-12-20 17:16:56 -03:00
parent 7af3bf81da
commit c42ba4f6e9

View file

@ -98,6 +98,7 @@ async function compilePageList(config: Config, pageList: string[]) {
generateHeader(name, "compilar.ts") +
`<ul>
${pageList
.sort((a, b) => a.localeCompare(b, "es", { sensitivity: "base" }))
.map((name) => `<li><a href="${name}.html">${name}</a></li>`)
.join("\n")}
</ul>