diff options
author | Sylvain Gauthier <s94.gauthier@laposte.net> | 2020-10-10 06:34:32 +0200 |
---|---|---|
committer | Sylvain Gauthier <s94.gauthier@laposte.net> | 2020-10-10 06:34:32 +0200 |
commit | 70177251a25c859de453f43b650ffc63445f1904 (patch) | |
tree | f0391b010abd3e96ad3b222566cbcea93e8d455c | |
parent | bd4a8693f084ff02a573639fd2cef8643d94cda0 (diff) |
fix tag index deps, add for tag_index gen
-rwxr-xr-x | blog | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 >> $@; \ |