20251221171010 push

This commit is contained in:
2025-12-21 17:10:10 -08:00
parent 6bb01c190c
commit acc0b6545a
35 changed files with 46 additions and 37 deletions

View File

@@ -62,11 +62,6 @@ draft_post() {
DRAFT_FILE="$DRAFTS_DIR/$(basename "${1%.*}").html"
cp "$TEMPLATES_DIR/_blog_post.html" "$DRAFT_FILE"
"$EDITOR" "$DRAFT_FILE"
read -r -p 'Post this draft? (Y/n) ' CHOICE
case "$CHOICE" in
[nN]*) exit 0 ;;
[yY]*|*) post_draft "$DRAFT_FILE" ;;
esac
}
edit_draft() {
local DRAFT_FILE
@@ -139,6 +134,11 @@ case "$1" in
else
draft_post "$DRAFT_FILE"
fi
read -r -p 'Post this draft? (Y/n) ' CHOICE
case "$CHOICE" in
[nN]*) exit 0 ;;
[yY]*|*) post_draft "$DRAFT_FILE" ;;
esac
;;
edit)
drafts_dir_check