summaryrefslogtreecommitdiff
path: root/lib/gemfeed.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-07-03 09:17:56 +0300
committerPaul Buetow <paul@buetow.org>2022-07-03 09:17:56 +0300
commit48e4ffe00e473629445ba52e93186dfa8f93c121 (patch)
tree645a810cd65dd70887bba61caabb0bae68cef77d /lib/gemfeed.source.sh
parent9c8ccc566dc50dd1b61d1ee2fbbfa9543795905d (diff)
add cache to speed up atom feed generation
Diffstat (limited to 'lib/gemfeed.source.sh')
-rw-r--r--lib/gemfeed.source.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gemfeed.source.sh b/lib/gemfeed.source.sh
index 1b2ee5c..0d9f2f9 100644
--- a/lib/gemfeed.source.sh
+++ b/lib/gemfeed.source.sh
@@ -3,9 +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 -E "$gmi_pattern" | sort -r
}
# Add the links from gemfeed/index.gmi to the main index site.