From faf72059492df8cd09d9ecd805111a8aaa77a221 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 8 Aug 2020 18:05:56 +0200 Subject: Add default pandoc template for HTML --- repo/www/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'repo/www/Makefile') diff --git a/repo/www/Makefile b/repo/www/Makefile index d74a77c..c1bbb28 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -13,6 +13,7 @@ dirnames = $(sort $(call dirname,$(1))) text_patterns = $(foreach ext,$(TEXT_FILES),'$(TOP_DIR)/**.$(ext)') text_folders = $(call dirnames,$(shell git ls-files $(text_patterns))) top_readme = $(shell git ls-files $(addprefix $(TOP_DIR)/README.,$(TEXT_FILES))) +html_template = template.html all: site @@ -47,10 +48,13 @@ $(html_folders) $(cache): $(pages) $(subindices): $(title) +$(pages) $(indices): $(html_template) + $(pages): $(OUT_DIR)/%.html: $(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \ pandoc -s $< -o $@ \ - -T "$$(cat $(title))" -M title="$*" \ + -T "$$(cat $(title))" -M title="$*" \ + --template $(html_template) \ --lua-filter convert-internal-links.lua top_index = $(OUT_DIR)/index.html -- cgit v1.2.3