From 70177251a25c859de453f43b650ffc63445f1904 Mon Sep 17 00:00:00 2001 From: Sylvain Gauthier Date: Sat, 10 Oct 2020 06:34:32 +0200 Subject: fix tag index deps, add for tag_index gen --- blog | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'blog') diff --git a/blog b/blog index a65f3dd..f9b7bf3 100755 --- a/blog +++ b/blog @@ -95,10 +95,12 @@ blog/tag/%.html: $(ARTICLES) $(addprefix templates/,$(addsuffix .html,header tag tagpages: $(TAGFILES) +$(BLOG) $(patsubst %,blog/@%.html,$(shell cat $(TAGFILES) | sort -u)) -blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer index_footer footer)) +blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer tag_index_footer footer)) mkdir -p blog TITLE="Articles tagged $*"; \ + TAGS="$*"; \ export TITLE; \ + export TAGS; \ envsubst < templates/header.html > $@; \ envsubst < templates/tag_index_header.html >> $@; \ envsubst < templates/article_list_header.html >> $@; \ -- cgit v1.2.3