mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2026-01-11 13:35:29 +00:00
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:
4
Makefile
4
Makefile
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user