From b1c404456d94019765a4a9d4ebbebc9bf750af8b Mon Sep 17 00:00:00 2001 From: Sylvain Gauthier Date: Mon, 15 Mar 2021 10:48:41 +1100 Subject: add custom markdown index file --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f10922484..6333cc291 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ tags/%: $(BLOG_SRC)/%.md mkdir -p tags grep -i '^; *tags:' "$<" | cut -d: -f2- | sed 's/ */\n/g' | sed '/^$$/d' | sort -u > $@ -blog/index.html: $(ARTICLES) $(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/index.html: index.md $(ARTICLES) $(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)) mkdir -p blog TITLE="$(BLOG_TITLE)"; \ PAGE_TITLE="$(BLOG_TITLE)"; \ @@ -93,6 +93,7 @@ blog/index.html: $(ARTICLES) $(TAGFILES) $(addprefix templates/,$(addsuffix .htm envsubst < templates/article_entry.html; \ first=false; \ done >> $@; \ + markdown < index.md >> $@; \ envsubst < templates/article_list_footer.html >> $@; \ envsubst < templates/index_footer.html >> $@; \ envsubst < templates/footer.html >> $@; \ -- cgit v1.2.3