summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSylvain Gauthier <s94.gauthier@laposte.net>2021-03-15 10:48:41 +1100
committerSylvain Gauthier <s94.gauthier@laposte.net>2021-03-15 10:48:41 +1100
commitb1c404456d94019765a4a9d4ebbebc9bf750af8b (patch)
tree1174b9775729bfa1ddeb4bf1fe328f6280796903 /Makefile
parent63968f5cf9408543a92a83d6aab12f081e495d1b (diff)
downloadbased.cooking-b1c404456d94019765a4a9d4ebbebc9bf750af8b.tar
based.cooking-b1c404456d94019765a4a9d4ebbebc9bf750af8b.tar.gz
based.cooking-b1c404456d94019765a4a9d4ebbebc9bf750af8b.tar.lz
based.cooking-b1c404456d94019765a4a9d4ebbebc9bf750af8b.tar.xz
based.cooking-b1c404456d94019765a4a9d4ebbebc9bf750af8b.zip
add custom markdown index file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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 >> $@; \