projects
/
web-old.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OpenGraph description support to blogit
[web-old.git]
/
blogit
diff --git
a/blogit
b/blogit
index 5be242954ea9b3e0d0bab525081ae84cb4591b9f..4f590f4ad53d34b7bb22ad1920f07bae41d726e9 100755
(executable)
--- a/
blogit
+++ b/
blogit
@@
-139,6
+139,8
@@
blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header ar
export DATE_EDITED; \
TAGS="$(shell grep -i '^; *tags:' "$<" | cut -d: -f2- | paste -sd ',')"; \
export TAGS; \
export DATE_EDITED; \
TAGS="$(shell grep -i '^; *tags:' "$<" | cut -d: -f2- | paste -sd ',')"; \
export TAGS; \
+ DESCRIPTION="$(shell grep -i '^; *description:' "$<" | cut -d: -f2-)"; \
+ export DESCRIPTION; \
envsubst < templates/header.html > $@; \
envsubst < templates/article_header.html >> $@; \
sed -e 1d \
envsubst < templates/header.html > $@; \
envsubst < templates/article_header.html >> $@; \
sed -e 1d \