From c3b8ff6455c77735c7339c617d8a869d1eba2c2e Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Sun, 21 Mar 2021 18:15:01 -0700 Subject: Fix tag separator to allow hyphen separated tags like 'slow-cooked' (#386) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7233ecaeb..edaeace9a 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ config: tags/%: $(BLOG_SRC)/%.md mkdir -p tags - grep -ih '^; *tags:' "$<" | cut -d: -f2- | tr '[:punct:]' ' ' | sed 's/ */\n/g' | sed '/^$$/d' | sort -u > $@ + grep -ih '^; *tags:' "$<" | cut -d: -f2- | tr -c '[^a-z\-]' ' ' | 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 -- cgit v1.2.3