summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-30 21:49:47 +0000
committerPaul Buetow <paul@buetow.org>2022-01-30 21:49:47 +0000
commit47437dc1ccc18ba4d8734e9d0e7d74b639fb0414 (patch)
treeecbf67a10268aca6c5ce57aac724cfc727ba8287 /lib
parent5ce8b37cd80fc90ff67f80b57ef191f51a6e37cd (diff)
dont add word count to gemfeed anymore - only print it out when generated
Diffstat (limited to 'lib')
-rw-r--r--lib/gemfeed.source.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gemfeed.source.sh b/lib/gemfeed.source.sh
index a408190..ee5623f 100644
--- a/lib/gemfeed.source.sh
+++ b/lib/gemfeed.source.sh
@@ -17,8 +17,8 @@ gemfeed::updatemainindex () {
# Remove old gemfeeds from main index
$SED '/^=> .\/gemfeed\/[0-9].* - .*/d;' "$index_gmi" > "$index_gmi.tmp"
- # Add current gemfeeds to main index, but remove te word count for clarity
- $SED -E -n '/^=> / { s| ./| ./gemfeed/|; s|\([0-9]+ words\) -|-|; p; }' \
+ # Add current gemfeeds to main index
+ $SED -E -n '/^=> / { s| ./| ./gemfeed/|; p; }' \
"$gemfeed_dir/index.gmi" >> "$index_gmi.tmp"
mv "$index_gmi.tmp" "$index_gmi"
@@ -51,8 +51,9 @@ GEMFEED
local filename_date=$(basename "$gemfeed_dir/$gmi_file" | cut -d- -f1,2,3)
local words=$(printf %04d "$(gemfeed::_get_word_count "$gemfeed_dir/$gmi_file")")
+ echo "$words words long: $title"
- echo "=> ./$gmi_file $filename_date ($words words) - $title" >> \
+ echo "=> ./$gmi_file $filename_date - $title" >> \
"$gemfeed_dir/index.gmi.tmp"
done < <(gemfeed::get_posts)