Merge branch 'site-authors-array' of https://github.com/jekyll/jekyll-seo-tag into site-authors-array

This commit is contained in:
Ben Balter 2017-08-22 13:05:26 -04:00
commit 30b8d8bb48
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
## HEAD
* Use canonical_url specified in page if present #211
* Fix for image.path causing an invalid url error #228
## 2.2.3

View File

@ -168,7 +168,8 @@ module Jekyll
image["path"] ||= image["facebook"] || image["twitter"]
return @image = nil unless image["path"]
unless absolute_url? image["path"]
# absolute_url? will return nil for an invalid URL
if absolute_url?(image["path"]) == false
image["path"] = filters.absolute_url image["path"]
end

View File

@ -581,7 +581,7 @@ RSpec.describe Jekyll::SeoTag::Drop do
let(:image) { ":" }
it "returns nil" do
expect(subject.image["path"]).to eql("/:")
expect(subject.image["path"]).to eql(":")
end
end