aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index a6c5879..9b89708 100755
--- a/build.sh
+++ b/build.sh
@@ -14,6 +14,7 @@ recursivebuild() {
14 extension=$(echo "$file" | sed 's/.*\.//') 14 extension=$(echo "$file" | sed 's/.*\.//')
15 if [ "$extension" = "md" ]; then 15 if [ "$extension" = "md" ]; then
16 sed "s/TITLE/$(grep '^\# ' < "$1/$file" \ 16 sed "s/TITLE/$(grep '^\# ' < "$1/$file" \
17 | head -n 1 \
17 | sed 's/^\# //')/" < top.html \ 18 | sed 's/^\# //')/" < top.html \
18 > "$destdir/index.html" 19 > "$destdir/index.html"
19 lowdown "$1/$file" >> "$destdir/index.html" 20 lowdown "$1/$file" >> "$destdir/index.html"

Generated with cgit - Back to sebastiano.tronto.net