diff --git a/lib/template.html b/lib/template.html index e21d56b..46968b4 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 1753804..2e04f7d 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -247,6 +247,16 @@ describe Jekyll::SeoTag do expect(output).to match(expected) end end + + context 'with page.image' do + let(:site) { make_site('twitter' => site_twitter, 'url' => 'http://example.invalid') } + let(:page) { make_page('image' => 'foo.png') } + + it 'outputs the image' do + expected = %r{} + expect(output).to match(expected) + end + end end end