summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2020-10-12 13:46:42 -0400
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2020-10-12 13:46:42 -0400
commit49ef8cc31c9cf7def0f5fb33a57ee230786992c9 (patch)
treedd54816a42e24ec3556e76067ca48571b83d46a5 /Makefile
parentbb6a93dc2944d98f5a5826608c0a16c56f9833dc (diff)
downloadloh-website-49ef8cc31c9cf7def0f5fb33a57ee230786992c9.tar.gz
Use markdown(1) instead of pandoc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cdbae8c..6f49b0e 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ site/favicon.ico: site/icon.svg
convert $^ -resize 128x128 $@
%.html: %.md header.html
- pandoc -s --metadata pagetitle="League of Humanity" -H header.html $< -o $@
+ cp header.html $@
+ markdown $< >> $@
sed -i.tmp -e 's/\.md/\.html/g' $@
rm $@.tmp
@@ -20,7 +21,7 @@ site/favicon.ico: site/icon.svg
cat $<.header.xml > $@
for i in $(shell ls -r $</*.xml | head -n 15) ; do \
cat $<.item_header.xml >> $@; \
- echo "<pubDate>$(shell date -r $$i '+%a, %d %b %Y')</pubDate>" >> $@; \
+ echo "<pubDate>`date -r $$i '+%a, %d %b %Y'`</pubDate>" >> $@; \
cat $$i >> $@; \
cat rss_item_footer.xml >> $@; \
done