summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 09:43:52 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 09:43:52 +0100
commit9996a47d0c6ccd532d2d0cd4c3554b9b2d28f824 (patch)
tree42b6999363b9129659b00883835d27d017f0dfd1 /http
parentabd249030bc3a49ff0b8fbda0c4c34c5f2391ecb (diff)
fixes missing post titles in microlog
Diffstat (limited to 'http')
-rwxr-xr-xhttp/bin/blog7
1 files changed, 3 insertions, 4 deletions
diff --git a/http/bin/blog b/http/bin/blog
index 5eb8961..d243596 100755
--- a/http/bin/blog
+++ b/http/bin/blog
@@ -99,11 +99,10 @@ do
dest="${SRC}/${log_name}/${name}${layout_ext}.upphtml"
if [ $use_filenames_for_titles -eq 1 ]
then
- title="$name"
- cat "$entry" | eval "POST_TITLE=\"${title}\" ${postprocess_cmd}" > "$dest"
+ export POST_TITLE="$name"
+ cat "$entry" | eval "${postprocess_cmd}" > "$dest"
else
- title="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
- export POST_TITLE="$title"
+ export POST_TITLE="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest"
fi
cat "$entry" | eval "$extract_args_cmd" > "${dest}.args"