summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Gauthier <s94.gauthier@laposte.net>2020-10-10 06:34:32 +0200
committerSylvain Gauthier <s94.gauthier@laposte.net>2020-10-10 06:34:32 +0200
commit70177251a25c859de453f43b650ffc63445f1904 (patch)
treef0391b010abd3e96ad3b222566cbcea93e8d455c
parentbd4a8693f084ff02a573639fd2cef8643d94cda0 (diff)
fix tag index deps, add for tag_index gen
-rwxr-xr-xblog4
1 files changed, 3 insertions, 1 deletions
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 >> $@; \