diff options
| author | Paul Buetow <paul@buetow.org> | 2022-11-19 10:52:17 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-11-19 10:52:17 +0000 |
| commit | e9044cd87daabcb83522a68732e0b96189baf854 (patch) | |
| tree | 51dbab3bfb80cf84afcb71bd290a942269ca11af /lib | |
| parent | da8db7e2886b9604d7a543be681005b6e146ff63 (diff) | |
add DRAFT feature
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/atomfeed.source.sh | 1 | ||||
| -rw-r--r-- | lib/gemfeed.source.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/atomfeed.source.sh b/lib/atomfeed.source.sh index c5e492f..65afa5a 100644 --- a/lib/atomfeed.source.sh +++ b/lib/atomfeed.source.sh @@ -88,6 +88,7 @@ atomfeed::generate () { local -r atom_file="$gemfeed_dir/atom.xml" local -r now=$($DATE --iso-8601=seconds) + log INFO "Generating Atom feed to $atom_file" log INFO 'This may takes a while with an empty cache....' diff --git a/lib/gemfeed.source.sh b/lib/gemfeed.source.sh index 8eaeb95..6cb9a5a 100644 --- a/lib/gemfeed.source.sh +++ b/lib/gemfeed.source.sh @@ -3,7 +3,7 @@ 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$' - ls "$gemfeed_dir" | $GREP -E "$gmi_pattern" | sort -r + ls "$gemfeed_dir" | $GREP -f -v DRAFT- | $GREP -E "$gmi_pattern" | sort -r } # Add the links from gemfeed/index.gmi to the main index site. |
