summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/atomfeed.source.sh15
-rw-r--r--lib/gemfeed.source.sh2
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
}