summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2020-11-24 15:13:05 -0500
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2020-11-24 15:13:05 -0500
commitdbc2fb6ab9a63758a598e3b925e15f848391fb52 (patch)
treeae5ad9af040c58b4f111d1dae5b4de221b3ed69b /Makefile
parentfb6f2306cf5feca82f79c2eae2173cf5eca06f0a (diff)
downloadloh-website-dbc2fb6ab9a63758a598e3b925e15f848391fb52.tar.gz
Fancied it up with some optional CSS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3502341..f531d36 100644
--- a/Makefile
+++ b/Makefile
@@ -11,9 +11,10 @@ all: $(HTML) $(RSS_XML) site/favicon.ico
site/favicon.ico: site/icon.svg
convert $^ -resize 128x128 $@
-%.html: %.md header.html
+%.html: %.md header.html footer.html
cp header.html $@
- markdown $< | sed -e 's/\.md/\.html/g' >> $@
+ markdown $< | sed -e 's/\.md/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@
+ cat footer.html >> $@
%.xml: %.rss %.rss.header.xml %.rss.item_header.xml rss_item_footer.xml rss_footer.xml
cat $<.header.xml > $@
@@ -21,7 +22,7 @@ site/favicon.ico: site/icon.svg
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 "<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>" >> $@; \
+ echo "<description>`markdown $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g ; s/&rsquo;/'\''/g ; s/&hellip;/.../g ; s/&ldquo;/"/g ; s/&rdquo;/"/g '`</description>" >> $@; \
cat rss_item_footer.xml >> $@; \
done
cat rss_footer.xml >> $@