From f519981e995030895f503afa67975ec673bc26d2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 1 Jan 2022 00:23:15 +0000 Subject: remove confusing draft feature --- lib/atomfeed.source.sh | 15 ++------------- lib/gemfeed.source.sh | 2 -- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/atomfeed.source.sh b/lib/atomfeed.source.sh index 52a61e1..dd2b28c 100644 --- a/lib/atomfeed.source.sh +++ b/lib/atomfeed.source.sh @@ -5,11 +5,6 @@ atomfeed::meta () { log VERBOSE "Generating meta info for post $gmi_file_path" - local is_draft=no - if $GREP -E -q '\.draft\.meta$' <<< "$meta_file"; then - is_draft=yes - fi - local -r meta_dir=$(dirname "$meta_file") if [[ ! -d "$meta_dir" ]]; then mkdir -p "$meta_dir" @@ -31,18 +26,12 @@ local meta_email="$EMAIL" local meta_title="$title" local meta_summary="$summary. .....to read on please visit my site." META - if [[ $is_draft == no ]]; then - git::add meta "$meta_file" - fi + git::add meta "$meta_file" return fi cat "$meta_file" - if [[ $is_draft == yes ]]; then - rm "$meta_file" - else - git::add meta "$meta_file" - fi + git::add meta "$meta_file" } # Retrieve the core content as XHTML of the blog post. diff --git a/lib/gemfeed.source.sh b/lib/gemfeed.source.sh index 7fcb942..c76946d 100644 --- a/lib/gemfeed.source.sh +++ b/lib/gemfeed.source.sh @@ -2,11 +2,9 @@ gemfeed::get_posts () { local -r gemfeed_dir="$CONTENT_BASE_DIR/gemtext/gemfeed" local -r gmi_pattern='^[0-9]{4}-[0-9]{2}-[0-9]{2}-.*\.gmi$' - local -r draft_pattern='\.draft\.gmi$' ls "$gemfeed_dir" | $GREP -E "$gmi_pattern" | - $GREP -E -v "$draft_pattern" | sort -r } -- cgit v1.2.3