diff options
author | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-17 13:50:41 +1100 |
---|---|---|
committer | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-17 13:50:41 +1100 |
commit | 321bddab3ba3f9311b57629535f7856a1f0f03be (patch) | |
tree | 8707e776d89538a4be639d7e6e65e15eac34e87d /Makefile | |
parent | 673b2fcaa5a4029df0a03aefe8354dd54ac110aa (diff) | |
download | based.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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |