summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Hall <Hallzy.18@gmail.com>2021-03-21 18:15:01 -0700
committerGitHub <noreply@github.com>2021-03-21 21:15:01 -0400
commitc3b8ff6455c77735c7339c617d8a869d1eba2c2e (patch)
treeec8c6f6e031c1ca4d2fd2499bfa2bdf5e6fcce51
parentf0e0e7cdeab0c838e2e1d82c26009e774fbd7cee (diff)
downloadbased.cooking-c3b8ff6455c77735c7339c617d8a869d1eba2c2e.tar
based.cooking-c3b8ff6455c77735c7339c617d8a869d1eba2c2e.tar.gz
based.cooking-c3b8ff6455c77735c7339c617d8a869d1eba2c2e.tar.lz
based.cooking-c3b8ff6455c77735c7339c617d8a869d1eba2c2e.tar.xz
based.cooking-c3b8ff6455c77735c7339c617d8a869d1eba2c2e.zip
Fix tag separator to allow hyphen separated tags like 'slow-cooked' (#386)HEADmaster
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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