summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Gauthier <s94.gauthier@laposte.net>2021-03-17 13:50:41 +1100
committerSylvain Gauthier <s94.gauthier@laposte.net>2021-03-17 13:50:41 +1100
commit321bddab3ba3f9311b57629535f7856a1f0f03be (patch)
tree8707e776d89538a4be639d7e6e65e15eac34e87d
parent673b2fcaa5a4029df0a03aefe8354dd54ac110aa (diff)
downloadbased.cooking-321bddab3ba3f9311b57629535f7856a1f0f03be.tar
based.cooking-321bddab3ba3f9311b57629535f7856a1f0f03be.tar.gz
based.cooking-321bddab3ba3f9311b57629535f7856a1f0f03be.tar.lz
based.cooking-321bddab3ba3f9311b57629535f7856a1f0f03be.tar.xz
based.cooking-321bddab3ba3f9311b57629535f7856a1f0f03be.zip
consolidate tag parsing
Allow punctuation signs to separate tags instead of just space
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3259a93bc..986aca329 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