From 9996a47d0c6ccd532d2d0cd4c3554b9b2d28f824 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 18 Jun 2026 09:43:52 +0100 Subject: [PATCH] fixes missing post titles in microlog --- http/bin/blog | 7 +++---- 1 file 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"