From 6ab4e4f2df80f25fa04523fcd0fdaa47d95eaf44 Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Thu, 9 Sep 2021 11:12:58 -0400 Subject: [PATCH] Newest first order for recent articles --- generate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate.sh b/generate.sh index e7edf25..d85df0c 100755 --- a/generate.sh +++ b/generate.sh @@ -60,7 +60,7 @@ do test -f "$PAGEFILENAME"_custom.groff && cat "$PAGEFILENAME"_custom.groff >> $PAGEFILENAME.groff echo "" >> $PAGEFILENAME.groff echo ".B \"Recent Posts\"" >> $PAGEFILENAME.groff - for f in posts/*/*/* + for f in $(ls -1r posts/*/*/*) do LINK=$(echo $f | sed "s/.groff/.html/g") CATEGORY=$(grep -r -m1 ".CAT" "$f" | sed "s/.CAT //g") @@ -99,7 +99,7 @@ for f in web/*.html done rm -f now.groff -grep -r ".TL" posts/ | sed "s/.groff/.html/g" | sed "s/posts/\n.URL posts/g" | sed "s/:.TL / /g" >> now.groff +grep -r ".TL" $(ls -1r posts/*/*/*) | sed "s/.groff/.html/g" | sed "s/posts/\n.URL posts/g" | sed "s/:.TL / /g" >> now.groff groff -ms -mwww -T html now.groff > web/now.html DateStamp web/now.html "$(date +'%Y-%m-%d %H:%M:%S')"