From 2904bf9babb5f9fbc0b24d82bc9478ec8c1eec39 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 19 Apr 2016 09:55:34 -0400 Subject: [PATCH] allow image to be an object --- lib/template.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/template.html b/lib/template.html index 95ffae1..809c8c6 100644 --- a/lib/template.html +++ b/lib/template.html @@ -89,7 +89,7 @@ {% endif %} {% if page.image %} - {% assign seo_page_image = page.image | prepend: seo_url | escape %} + {% assign seo_page_image = page.image.path | default: page.image.facebook | default: page.image | prepend: seo_url | escape %} {% endif %} {% if seo_tag.title and seo_title %} @@ -115,7 +115,17 @@ {% endif %} {% if seo_page_image %} - + + {% if page.image.height %} + + {% endif %} + {% if page.image.width %} + + {% endif %} +{% endif %} + +{% if page.image.twitter %} + {% endif %} {% if page.date %} @@ -132,7 +142,7 @@ {% endif %} {% if site.twitter %} - {% if seo_page_image %} + {% if seo_page_image or page.image.twitter %} {% else %}