summaryrefslogtreecommitdiff
path: root/lib/atomfeed.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-01 00:23:15 +0000
committerPaul Buetow <paul@buetow.org>2022-01-01 00:23:15 +0000
commitf519981e995030895f503afa67975ec673bc26d2 (patch)
treeb07f8be8ced8fb522fdccfbed718ff1d87a6ccb0 /lib/atomfeed.source.sh
parenta761d8276a86bc6bafa0f465887869bd3dd96bda (diff)
remove confusing draft feature
Diffstat (limited to 'lib/atomfeed.source.sh')
-rw-r--r--lib/atomfeed.source.sh15
1 files changed, 2 insertions, 13 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.