Merge pull request #133 from daviddarnes/patch-1

Merge pull request 133
This commit is contained in:
jekyllbot 2016-10-23 13:49:49 -07:00 committed by GitHub
commit 5163c0cbc9
2 changed files with 9 additions and 3 deletions

View File

@ -205,7 +205,13 @@
{% endif %}
{% if seo_site_logo %}
"logo": {{ seo_site_logo | jsonify }},
"publisher": {
"@type": "Organization",
"logo": {
"@type": "ImageObject",
"url": {{ seo_site_logo | jsonify }}
}
},
{% endif %}
{% if seo_links %}

View File

@ -184,7 +184,7 @@ describe Jekyll::SeoTag do
let(:site) { make_site("logo" => "/logo.png", "url" => "http://example.invalid") }
it "outputs the logo" do
expect(json_data["logo"]).to eql("http://example.invalid/logo.png")
expect(json_data["publisher"]["logo"]["url"]).to eql("http://example.invalid/logo.png")
end
end
@ -192,7 +192,7 @@ describe Jekyll::SeoTag do
let(:site) { make_site("logo" => "http://cdn.example.invalid/logo.png", "url" => "http://example.invalid") }
it "outputs the logo" do
expect(json_data["logo"]).to eql("http://cdn.example.invalid/logo.png")
expect(json_data["publisher"]["logo"]["url"]).to eql("http://cdn.example.invalid/logo.png")
end
end