From a847a69eeafb403b42488e4b4ad3dcf9ce9dc17c Mon Sep 17 00:00:00 2001 From: Kyle Niewiada Date: Thu, 16 Feb 2017 14:16:11 -0500 Subject: [PATCH] Fix small test case blunder. --- lib/template.html | 2 +- spec/jekyll_seo_tag_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/template.html b/lib/template.html index e0e9b52..ebc0697 100755 --- a/lib/template.html +++ b/lib/template.html @@ -102,7 +102,7 @@ {% endif %} {% if page.image %} - {% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image %} + {% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image.path | default: page.image %} {% unless seo_page_image_default contains "://" %} {% assign seo_page_image_default = seo_page_image_default | absolute_url %} {% endunless %} diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index 52e3829..8637da4 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -141,7 +141,7 @@ describe Jekyll::SeoTag do context "with page.image as an object" do context "when given a path" do - let(:page) { make_page("image" => { "default" => "/img/foo.png" }) } + let(:page) { make_page("image" => { "path" => "/img/foo.png" }) } it "outputs the image" do expected = %r!!