Replace em-dashes with -- for HTML purposes (#574)

Some applications will mess up with these, and since they are also used
in the <title>, &em; won't work either.

So -- is a good solution to this.

Co-authored-by: Spenser Truex <truex@equwal.com>
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
This commit is contained in:
Spenser Truex
2021-04-20 18:52:56 -07:00
committed by GitHub
parent efaa425737
commit cdc4c81c8b
15 changed files with 16 additions and 16 deletions

View File

@@ -107,7 +107,7 @@ tagpages: $(TAGFILES)
blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer tag_index_footer footer))
mkdir -p blog
PAGE_TITLE="Articles tagged $* $(BLOG_TITLE)"; \
PAGE_TITLE="Articles tagged $* -- $(BLOG_TITLE)"; \
TAGS="$*"; \
TITLE="$(BLOG_TITLE)"; \
export PAGE_TITLE; \
@@ -137,7 +137,7 @@ blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header ar
mkdir -p blog
TITLE="$(shell head -n1 $< | sed 's/^# \+//')"; \
export TITLE; \
PAGE_TITLE="$${TITLE} Recipe $(BLOG_TITLE)"; \
PAGE_TITLE="$${TITLE} Recipe -- $(BLOG_TITLE)"; \
export PAGE_TITLE; \
AUTHOR="$(shell git log --format="%an" -- "$<" | tail -n 1)"; \
export AUTHOR; \