From 738f4efea7955a98c5640b3ea7f3ca932cb958f2 Mon Sep 17 00:00:00 2001 From: Bo Turnbow Date: Tue, 23 Feb 2016 11:54:52 -0700 Subject: [PATCH] Update twitter:image to output full url --- lib/template.html | 2 +- spec/jekyll_seo_tag_spec.rb | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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