diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-18 09:43:52 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-18 09:43:52 +0100 |
| commit | 9996a47d0c6ccd532d2d0cd4c3554b9b2d28f824 (patch) | |
| tree | 42b6999363b9129659b00883835d27d017f0dfd1 /http/bin | |
| parent | abd249030bc3a49ff0b8fbda0c4c34c5f2391ecb (diff) | |
fixes missing post titles in microlog
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/blog | 7 |
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" |
