compilar: Ordenar Lista de páginas
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fixes #2
This commit is contained in:
parent
7af3bf81da
commit
c42ba4f6e9
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ async function compilePageList(config: Config, pageList: string[]) {
|
||||||
generateHeader(name, "compilar.ts") +
|
generateHeader(name, "compilar.ts") +
|
||||||
`<ul>
|
`<ul>
|
||||||
${pageList
|
${pageList
|
||||||
|
.sort((a, b) => a.localeCompare(b, "es", { sensitivity: "base" }))
|
||||||
.map((name) => `<li><a href="${name}.html">${name}</a></li>`)
|
.map((name) => `<li><a href="${name}.html">${name}</a></li>`)
|
||||||
.join("\n")}
|
.join("\n")}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Reference in a new issue