seo: fix Google rich results not detecting site logo.
Bug: for some reason, Google's rich results tool doesn't detect our logo when the @id property is present. https://search.google.com/test/rich-results
This commit is contained in:
@@ -25,7 +25,6 @@ module SeoHelper
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "Organization",
|
||||
"@id": root_url(anchor: "organization", host: Danbooru.config.hostname),
|
||||
url: root_url(host: Danbooru.config.hostname),
|
||||
name: Danbooru.config.app_name,
|
||||
logo: "#{root_url(host: Danbooru.config.hostname)}images/danbooru-logo-500x500.png",
|
||||
@@ -37,9 +36,6 @@ module SeoHelper
|
||||
"url": root_url(host: Danbooru.config.hostname),
|
||||
"name": Danbooru.config.app_name,
|
||||
"description": site_description,
|
||||
"publisher": {
|
||||
"@id": root_url(anchor: "organization", host: Danbooru.config.hostname),
|
||||
},
|
||||
"potentialAction": [{
|
||||
"@type": "SearchAction",
|
||||
"target": "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",
|
||||
|
||||
Reference in New Issue
Block a user