Quick and dirty OpenGraph image support
[web-old.git] / blogit
diff --git a/blogit b/blogit
index 4f590f4ad53d34b7bb22ad1920f07bae41d726e9..cfc7017ed149c84e21740ac5346b1f1e3607a196 100755 (executable)
--- a/blogit
+++ b/blogit
@@ -141,6 +141,8 @@ blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header ar
        export TAGS; \
        DESCRIPTION="$(shell grep -i '^; *description:' "$<" | cut -d: -f2-)"; \
        export DESCRIPTION; \
+       OG_IMAGE="$(shell grep -i '^; *og_image:' "$<" | cut -d: -f2-)"; \
+       export OG_IMAGE; \
        envsubst < templates/header.html > $@; \
        envsubst < templates/article_header.html >> $@; \
        sed -e 1d \