summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--template.html4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 09f62c2..4a86e44 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ PROG=./stmd
all: $(SRCDIR)/case_fold_switch.c $(PROG)
README.html: README.md
- pandoc -S -s -t html5 -o $@ $<
+ pandoc --template template.html -S -s -t html5 -o $@ $<
spec: test spec.html
diff --git a/template.html b/template.html
index 2286c68..5416a07 100644
--- a/template.html
+++ b/template.html
@@ -53,8 +53,12 @@ a.footnoteRef > sup {
</style>
</head>
<body>
+$if(title)$
<h1 class="title">$title$</h1>
+$endif$
+$if(version)$
<div class="version">Version $version$ ($date$)</div>
+$endif$
<div class="authors">
$for(author)$<span class="author">$author$</span>$sep$; $endfor$
</div>