sebastiano.tronto.net

Source files and build scripts for my personal website
git clone https://git.tronto.net/sebastiano.tronto.net
Download | Log | Files | Refs | README

commit 3d4eb955c2b589d1cc739065a272be26c933722b
parent a9c4f75f96eda90f0163b308d8c9b2f9ec895eb8
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sat,  4 Jun 2022 00:38:43 +0200

Fixed grepping multiple titles

Diffstat:
M.gitignore | 1-
Mbuild.sh | 1+
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1,4 +1,3 @@ http gemini -BLOG-IDEAS HTML-TIPS diff --git 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"