diff --git a/lib/template.html b/lib/template.html
index d68b1f8..95ffae1 100644
--- a/lib/template.html
+++ b/lib/template.html
@@ -132,7 +132,12 @@
{% endif %}
{% if site.twitter %}
-
+ {% if seo_page_image %}
+
+ {% else %}
+
+ {% endif %}
+
{% if seo_author_twitter %}
diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb
index 0f1bf5f..b3fae8f 100644
--- a/spec/jekyll_seo_tag_spec.rb
+++ b/spec/jekyll_seo_tag_spec.rb
@@ -203,6 +203,9 @@ EOS
let(:page) { make_page('author' => 'benbalter') }
it 'outputs twitter card meta' do
+ expected = %r{}
+ expect(output).to match(expected)
+
expected = %r{}
expect(output).to match(expected)
@@ -241,6 +244,15 @@ EOS
end
end
+ context 'with page.image' do
+ let(:page) { make_page('image' => '/img/foo.png') }
+
+ it 'outputs summary card with large image' do
+ expected = %r{}
+ expect(output).to match(expected)
+ end
+ end
+
context 'with page.author as a hash' do
let(:page) { make_page('author' => { 'twitter' => '@test' }) }