From 321bddab3ba3f9311b57629535f7856a1f0f03be Mon Sep 17 00:00:00 2001 From: Sylvain Gauthier Date: Wed, 17 Mar 2021 13:50:41 +1100 Subject: [PATCH] consolidate tag parsing Allow punctuation signs to separate tags instead of just space --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3259a93..986aca3 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ config: tags/%: $(BLOG_SRC)/%.md mkdir -p tags - grep -i '^; *tags:' "$<" | cut -d: -f2- | sed 's/ */\n/g' | sed '/^$$/d' | sort -u > $@ + grep -ih '^; *tags:' "$<" | cut -d: -f2- | tr '[:punct:]' ' ' | sed 's/ */\n/g' | sed '/^$$/d' | sort -u > $@ 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