From d3f0841cfdd229ff16b8a230117737a435fc7a56 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 30 Aug 2026 16:58:07 +0200 Subject: Remove 'hosted at' --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 59c0232..1cfcd1c 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ #!/bin/sh basedir="$(pwd)" +bottomtmp="$(mktemp)" recursivebuild() { local destdir=$(echo "$1" | sed 's|^src|http|') @@ -44,7 +45,7 @@ copyfile() { mdpreprocess "$file" | \ lowdown --html-no-skiphtml --html-no-escapehtml \ >> "$ind" - cat bottom.html >> "$ind" + cat "$bottomtmp" >> "$ind" ;; noheadermd) t="$(markdowntitle "$file")" @@ -55,7 +56,7 @@ copyfile() { ;; html) t="$(htmltitle "$file")" - cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" + cat top.html "$file" "$bottomtmp" | sed "s/TITLE/$t/" > "$ind" ;; raw) namenoraw="$(basename "$file" | sed 's/\.raw$//')" @@ -118,7 +119,7 @@ makeblogindexandfeed() { done echo '' >> "$bf" - cat bottom.html >> "$bf" + cat "$bottomtmp" >> "$bf" { echo ""; echo ""; echo ""; } >> "$ff" } @@ -164,5 +165,6 @@ month() { esac } +sed "s/LASTUPDATE/$(date +'%Y-%m-%d')/" "$bottomtmp" makeblogindexandfeed recursivebuild src -- cgit v1.3