Lista de páginas: no romper enlaces y mostrar otras páginas .gen
All checks were successful
continuous-integration/woodpecker the build was successful
All checks were successful
continuous-integration/woodpecker the build was successful
This commit is contained in:
parent
1de517f77b
commit
1ceaa80ba5
1 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "<ul>"
|
echo "<ul>"
|
||||||
for file in build/*.html; do
|
for file in *.md; do
|
||||||
title="$(basename "$file" .html)"
|
title="$(basename "$file" .md)"
|
||||||
echo "<li><a href='$file'>$title</a></li>"
|
echo "<li><a href='$title.html'>$title</a></li>"
|
||||||
|
done
|
||||||
|
for file in *.gen; do
|
||||||
|
title="$(basename "$file" .gen)"
|
||||||
|
echo "<li><a href='$title.html'>$title</a></li>"
|
||||||
done
|
done
|
||||||
echo "</ul>"
|
echo "</ul>"
|
||||||
|
|
Reference in a new issue