diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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" |
