From b42501b45a3e111a57f4dc21cc15b53030bfa2dd Mon Sep 17 00:00:00 2001 From: Bo Turnbow Date: Tue, 23 Feb 2016 15:54:17 -0700 Subject: [PATCH] Per Ben Balter, change usage to a rooted image url --- lib/template.html | 2 +- spec/jekyll_seo_tag_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/template.html b/lib/template.html index 46968b4..7e01a10 100644 --- a/lib/template.html +++ b/lib/template.html @@ -118,7 +118,7 @@ {% if page.image %} - + {% endif %} {% if seo_author_twitter %} diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index 2e04f7d..a607758 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -250,10 +250,10 @@ describe Jekyll::SeoTag do context 'with page.image' do let(:site) { make_site('twitter' => site_twitter, 'url' => 'http://example.invalid') } - let(:page) { make_page('image' => 'foo.png') } + let(:page) { make_page('image' => '/img/foo.png') } it 'outputs the image' do - expected = %r{} + expected = %r{} expect(output).to match(expected) end end