mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-03-27 03:59:15 +00:00
Added Camera emoji on recipes with images
This commit is contained in:
parent
5f28902e6d
commit
d5ed86d5f5
4
Makefile
4
Makefile
@ -89,7 +89,7 @@ blog/index.html: index.md $(ARTICLES) $(TAGFILES) $(addprefix templates/,$(addsu
|
|||||||
"$$first" || envsubst < templates/article_separator.html; \
|
"$$first" || envsubst < templates/article_separator.html; \
|
||||||
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
|
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
|
||||||
DATE="$$DATE" \
|
DATE="$$DATE" \
|
||||||
TITLE="`head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
|
TITLE="`grep -q "(pix/[^.]\+\.webp" "\$$FILE" && echo "📷 "``head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
|
||||||
envsubst < templates/article_entry.html; \
|
envsubst < templates/article_entry.html; \
|
||||||
first=false; \
|
first=false; \
|
||||||
done >> $@; \
|
done >> $@; \
|
||||||
@ -124,7 +124,7 @@ blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_in
|
|||||||
"$$first" || envsubst < templates/article_separator.html; \
|
"$$first" || envsubst < templates/article_separator.html; \
|
||||||
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
|
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
|
||||||
DATE="$$DATE" \
|
DATE="$$DATE" \
|
||||||
TITLE="`head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
|
TITLE="`grep -q "(pix/[^.]\+\.webp" "\$$FILE" && echo "📷 "``head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
|
||||||
envsubst < templates/article_entry.html; \
|
envsubst < templates/article_entry.html; \
|
||||||
first=false; \
|
first=false; \
|
||||||
done >> $@; \
|
done >> $@; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user