Newest first order for recent articles

This commit is contained in:
Paul Jones 2021-09-09 11:12:58 -04:00
parent ebe59e4268
commit 6ab4e4f2df
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ do
test -f "$PAGEFILENAME"_custom.groff && cat "$PAGEFILENAME"_custom.groff >> $PAGEFILENAME.groff test -f "$PAGEFILENAME"_custom.groff && cat "$PAGEFILENAME"_custom.groff >> $PAGEFILENAME.groff
echo "" >> $PAGEFILENAME.groff echo "" >> $PAGEFILENAME.groff
echo ".B \"Recent Posts\"" >> $PAGEFILENAME.groff echo ".B \"Recent Posts\"" >> $PAGEFILENAME.groff
for f in posts/*/*/* for f in $(ls -1r posts/*/*/*)
do do
LINK=$(echo $f | sed "s/.groff/.html/g") LINK=$(echo $f | sed "s/.groff/.html/g")
CATEGORY=$(grep -r -m1 ".CAT" "$f" | sed "s/.CAT //g") CATEGORY=$(grep -r -m1 ".CAT" "$f" | sed "s/.CAT //g")
@ -99,7 +99,7 @@ for f in web/*.html
done done
rm -f now.groff 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 groff -ms -mwww -T html now.groff > web/now.html
DateStamp web/now.html "$(date +'%Y-%m-%d %H:%M:%S')" DateStamp web/now.html "$(date +'%Y-%m-%d %H:%M:%S')"