Separar lista de páginas en otra página y poder hacer paginas generadas

This commit is contained in:
Cat /dev/Nulo 2021-12-10 17:44:26 -03:00
parent 494771b168
commit a4661a715c
3 changed files with 16 additions and 3 deletions

7
Lista de páginas.gen Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
echo "<ul>"
for file in build/*.html; do
title="$(basename "$file" .html)"
echo "<li><a href='$file'>$title</a></li>"
done
echo "</ul>"

View File

@ -33,7 +33,6 @@ cp ./*.sh ./*.md ./*.css ./*.png ./*.mp4 "$outdir"
index="$outdir/index.html"
inicio=true header=false template "nulo.in" > "$index"
markdown index.md >> "$index"
echo "<h2>Lista de páginas</h2><ul>" >> "$index"
for file in *.md; do
test "$(basename "$file")" = index.md && continue
@ -41,7 +40,12 @@ for file in *.md; do
outfile="$outdir/$title.html"
template "$title" "$file" > "$outfile"
markdown "$file" >> "$outfile"
echo "<li><a href='$title.html'>$title</a></li>" >> "$index"
done
echo "</ul>" >> "$index"
for file in *.gen; do
title="$(basename "$file" .gen)"
outfile="$outdir/$title.html"
template "$title" "$file" > "$outfile"
"./$file" >> "$outfile"
done

View File

@ -23,4 +23,6 @@ Webamigx: [nadie@nulo.in](mailto:nadie@nulo.in) <small>no gods no webmasters</sm
<a rel="me noopener noreferrer" href="https://todon.eu/@Nulo">Mastodon</a>
[[Lista de páginas]]
> De este sitio se desprenden graves falencias tales como simbología confusa, cuestionamientos ideológicos-sociales, objetivos no adecuados al hecho estético, ilimitada fantasía...