From 745663369a381fc42c744bd48d359498b05807ac Mon Sep 17 00:00:00 2001 From: Bo Turnbow Date: Fri, 4 Mar 2016 14:43:45 -0700 Subject: [PATCH] Assign seo_ vars site.logo and page.image --- lib/template.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/template.html b/lib/template.html index d5e9686..d68b1f8 100644 --- a/lib/template.html +++ b/lib/template.html @@ -84,6 +84,14 @@ {% assign seo_links = site.social.links %} {% endif %} +{% if site.logo %} + {% assign seo_site_logo = site.logo | prepend: seo_url | escape %} +{% endif %} + +{% if page.image %} + {% assign seo_page_image = page.image | prepend: seo_url | escape %} +{% endif %} + {% if seo_tag.title and seo_title %} {{ seo_title }} {% endif %} @@ -106,8 +114,8 @@ {% endif %} -{% if page.image %} - +{% if seo_page_image %} + {% endif %} {% if page.date %} @@ -162,8 +170,8 @@ "headline": {{ seo_page_title | jsonify }}, {% endif %} -{% if page.image %} - "image": {{ page.image | prepend: seo_url | jsonify }}, +{% if seo_page_image %} + "image": {{ seo_page_image | jsonify }}, {% endif %} {% if page.date %} @@ -174,8 +182,8 @@ "description": {{ seo_description | jsonify }}, {% endif %} -{% if site.logo %} - "logo": {{ site.logo | prepend: seo_url | jsonify }}, +{% if seo_site_logo %} + "logo": {{ seo_site_logo | jsonify }}, {% endif %} {% if seo_links %}