diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-08 18:05:56 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-08 18:09:17 +0200 |
| commit | faf72059492df8cd09d9ecd805111a8aaa77a221 (patch) | |
| tree | 721f81a9e53a7c6f09fe64a2f82ad9ac80024a86 /repo/www/Makefile | |
| parent | 19e95772a8b8ba047703089f643df5e3805d9969 (diff) | |
| download | memory-leaks-faf72059492df8cd09d9ecd805111a8aaa77a221.tar.xz | |
Add default pandoc template for HTML
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 6 |
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 |
