summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-09 22:09:53 -0400
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-09 22:09:53 -0400
commit3bde0ef79e852a09d7ed6c2a1ff94f6b4f81d660 (patch)
tree161045730c5277ca2cf95c34bc74ee9a7b7410ce /Makefile
parent53893288584eff35aceae69e4f4fa071bdbe61cf (diff)
downloadloh-website-3bde0ef79e852a09d7ed6c2a1ff94f6b4f81d660.tar.gz
Fixed RSS feed sorting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f567e37..ddd1419 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ all: $(HTML) $(RSS_XML)
%.xml: %.rss %.rss.header.xml %.rss.item_header.xml rss_item_footer.xml rss_footer.xml
@echo "RSS $@"
cat $<.header.xml > $@
- for i in $(shell ls -t $</*.gmi | head -n 15) ; do \
+ for i in $(shell ls -r $</*.gmi | head -n 15) ; do \
cat $<.item_header.xml >> $@; \
echo "<title>`sed -n '/^#.*/p' $$i | cut -c 3-`</title>" >> $@; \
echo "<pubDate>`basename $$i | head -c8 | xargs date '+%a, %d %b %Y' -d`</pubDate>" >> $@; \