summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2020-11-21 17:01:01 -0500
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2020-11-21 17:01:01 -0500
commitfb6f2306cf5feca82f79c2eae2173cf5eca06f0a (patch)
treeb54b89a5321fb676b42838567c1edb6797b05774 /Makefile
parent95fdfde6c9004b8cdb25b2b57bc2f8224abbae55 (diff)
downloadloh-website-fb6f2306cf5feca82f79c2eae2173cf5eca06f0a.tar.gz
Fix dates and HTML code stupidity
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 677d1b9..3502341 100644
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,8 @@ site/favicon.ico: site/icon.svg
for i in $(shell ls -r $</*.md | head -n 15) ; do \
cat $<.item_header.xml >> $@; \
echo "<title>`sed -n '/^#.*/p' $$i | cut -c 3-`</title>" >> $@; \
- echo "<pubDate>`date -r $$i '+%a, %d %b %Y'`</pubDate>" >> $@; \
- echo "<description>`sed '/^#.*/d' $${i%.md}.html | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'`</description>" >> $@; \
+ echo "<pubDate>`basename $$i | head -c8 | xargs date '+%a, %d %b %Y' -d`</pubDate>" >> $@; \
+ echo "<description>`sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g ; s/&rsquo;/'\''/g ; s/&hellip;/.../g ; s/&ldquo;/"/g ; s/&rdquo;/"/g ' $${i%.md}.html`</description>" >> $@; \
cat rss_item_footer.xml >> $@; \
done
cat rss_footer.xml >> $@