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 --- .gitignore | 1 - build.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 18bd88b..f7a84cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ http gemini -BLOG-IDEAS HTML-TIPS 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