chiark / gitweb /
wip titles for html and pdf
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Nov 2021 18:40:58 +0000 (18:40 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Nov 2021 18:40:58 +0000 (18:40 +0000)
Makefile
house-rules.md
pumpkin-books.md

index 7388793e2cdb04e921331c900e69146ddf98147b..acce17c933101a8e1c5c0b02d4889281dfc48cdc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,8 +52,10 @@ PUBLISH_FILES= \
 %.md.txt: %.md
        cat $< $o
 
+title=-Mtitle='$(shell head -1 $<)'
+
 %.md.html: %.md Makefile
-       pandoc -s $< $o
+       pandoc $(title) -s $< $o
 
 %.md.pdf: %.md Makefile
        pandoc --pdf-engine=wkhtmltopdf -o $@ $<
index b0e8ceb8950ff48597a43300ab419b747d493c59..1f3b9bfa527894935b3a1844e69700f3360cd619 100644 (file)
@@ -1,4 +1,4 @@
-HOUSE RULES
+House rules
 ===========
 
 Turn taking
index f66a571bc95e7562b5610dd4c0660b9e69ce6f8d..93ed790187b2df83dd2f375fd3e37b5065a8e2e8 100644 (file)
@@ -1,4 +1,4 @@
-BOOKS INVOLVING PUMPKINS
+Books involving pumpkins
 ========================
 
 *** NB see pumpkin-books.pdf to see which ones have been playtested ***