summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-08 18:30:08 -0400
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-08-08 18:30:08 -0400
commit8ed7dc0b2187d522e2904e4b3b3e7919af461449 (patch)
treecea661c7f77f89958a633b8ef9459d7b274102f2 /Makefile
parentc6cc6cb67dc4e7a221fae429746cc0487adfbf0a (diff)
downloadloh-website-8ed7dc0b2187d522e2904e4b3b3e7919af461449.tar.gz
Converted RSS feeds to gemtext
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 97a1d52..7d474dc 100644
--- a/Makefile
+++ b/Makefile
@@ -11,12 +11,12 @@ 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 -r $</*.md | head -n 15) ; do \
+ for i in $(shell ls -t $</*.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>" >> $@; \
echo "<link>https://leagueh.xyz/$$i</link>" | sed 's/site\///g ; s/.md/.html/g' >> $@; \
- echo "<description>`markdown -f fencedcode,nosmarty $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g '`</description>" >> $@; \
+ echo "<description>`./gmi2html < $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g '`</description>" >> $@; \
cat rss_item_footer.xml >> $@; \
done
cat rss_footer.xml >> $@