diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-08-13 23:11:18 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-08-13 23:11:18 -0700 |
commit | eb14dda8e8ffc755b0837e0bc2bb9c62281287d7 (patch) | |
tree | ad8da8692ece6f717875e7ca3b756301e53b124e | |
parent | 0b817259d80d4c340ddba4c83386de9c164d87df (diff) |
Use template for HTML version of README.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | template.html | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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> |