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