diff options
author | Katherine Peeters <katherine.peeters@leagueh.xyz> | 2020-11-24 15:13:05 -0500 |
---|---|---|
committer | Katherine Peeters <katherine.peeters@leagueh.xyz> | 2020-11-24 15:13:05 -0500 |
commit | dbc2fb6ab9a63758a598e3b925e15f848391fb52 (patch) | |
tree | ae5ad9af040c58b4f111d1dae5b4de221b3ed69b /Makefile | |
parent | fb6f2306cf5feca82f79c2eae2173cf5eca06f0a (diff) | |
download | loh-website-dbc2fb6ab9a63758a598e3b925e15f848391fb52.tar.gz |
Fancied it up with some optional CSS
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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/</\</g ; s/>/\>/g ; s/’/'\''/g ; s/…/.../g ; s/“/"/g ; s/”/"/g ' $${i%.md}.html`</description>" >> $@; \ + echo "<description>`markdown $$i | sed '/^#.*/d ; s/</\</g ; s/>/\>/g ; s/’/'\''/g ; s/…/.../g ; s/“/"/g ; s/”/"/g '`</description>" >> $@; \ cat rss_item_footer.xml >> $@; \ done cat rss_footer.xml >> $@ |