summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'repo/www/Makefile')
-rw-r--r--repo/www/Makefile6
1 files changed, 5 insertions, 1 deletions
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