Skip to content

Commit

Permalink
Fix tag separator to allow hyphen separated tags like 'slow-cooked' (L…
Browse files Browse the repository at this point in the history
  • Loading branch information
hallzy authored Mar 22, 2021
1 parent f0e0e7c commit c3b8ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3b8ff6

Please sign in to comment.