From 3d4eb955c2b589d1cc739065a272be26c933722b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 4 Jun 2022 00:38:43 +0200 Subject: Fixed grepping multiple titles --- build.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index a6c5879..9b89708 100755 --- a/build.sh +++ b/build.sh @@ -14,6 +14,7 @@ recursivebuild() { extension=$(echo "$file" | sed 's/.*\.//') if [ "$extension" = "md" ]; then sed "s/TITLE/$(grep '^\# ' < "$1/$file" \ + | head -n 1 \ | sed 's/^\# //')/" < top.html \ > "$destdir/index.html" lowdown "$1/$file" >> "$destdir/index.html" -- cgit v1.3