From f57d38ec6425bdd41aa88a28d24b170c37680fdb Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Mon, 17 Aug 2020 22:22:44 +0200 Subject: Move page generation to a script Will reduce friction to code things cleanly. --- repo/www/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'repo/www/Makefile') diff --git a/repo/www/Makefile b/repo/www/Makefile index d748735..9640fc4 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -51,11 +51,9 @@ $(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="$*" \ - --template $(html_template) \ - --lua-filter convert-internal-links.lua + $(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \ + ./generate-page.py --site-title="$$(cat $(title))" --title="$*" \ + $< $@ top_index = $(OUT_DIR)/index.html subindices = $(filter-out $(top_index),$(indices)) -- cgit v1.2.3