adds last updated date to every generated html file
authorDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 00:45:10 +0000 (02:45 +0200)
committerDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 00:45:10 +0000 (02:45 +0200)
Makefile

index 35f4fea..4cbd111 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ build/:
        mkdir -p $@
 
 build/%.html: %.md build/ Makefile
-       markdown $< >$@
+       { cat $<; echo; echo "<small><i>Last updated $$(date -u -d @$$(stat -c %Y $<))</i></small>"; } | markdown >$@
        cp -a $L build/
 
 view: