Lista de páginas: no romper enlaces y mostrar otras páginas .gen
This commit is contained in:
parent
fb01454499
commit
3562c9b132
1 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
|||
#!/bin/sh
|
||||
echo "<ul>"
|
||||
for file in build/*.html; do
|
||||
title="$(basename "$file" .html)"
|
||||
echo "<li><a href='$file'>$title</a></li>"
|
||||
for file in *.md; do
|
||||
title="$(basename "$file" .md)"
|
||||
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
|
||||
echo "</ul>"
|
||||
|
|
Reference in a new issue