summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-01-03 23:55:39 -0500
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-01-03 23:55:39 -0500
commit0114cda5cb30195d45c0facc60ab45394ad3a698 (patch)
tree5cc3b8c2cb78da603eeeb945581db5778a175666 /Makefile
parent01455f48cc518d7492a18c715dfc5330db75f25e (diff)
downloadloh-website-0114cda5cb30195d45c0facc60ab45394ad3a698.tar.gz
Add a link tag to RSS feeds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 098d829..99ffabb 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ all: $(HTML) $(RSS_XML)
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 nosmarty $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g '`</description>" >> $@; \
cat rss_item_footer.xml >> $@; \
done