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": [
|
"@graph": [
|
||||||
{
|
{
|
||||||
"@type": "Organization",
|
"@type": "Organization",
|
||||||
"@id": root_url(anchor: "organization", host: Danbooru.config.hostname),
|
|
||||||
url: root_url(host: Danbooru.config.hostname),
|
url: root_url(host: Danbooru.config.hostname),
|
||||||
name: Danbooru.config.app_name,
|
name: Danbooru.config.app_name,
|
||||||
logo: "#{root_url(host: Danbooru.config.hostname)}images/danbooru-logo-500x500.png",
|
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),
|
"url": root_url(host: Danbooru.config.hostname),
|
||||||
"name": Danbooru.config.app_name,
|
"name": Danbooru.config.app_name,
|
||||||
"description": site_description,
|
"description": site_description,
|
||||||
"publisher": {
|
|
||||||
"@id": root_url(anchor: "organization", host: Danbooru.config.hostname),
|
|
||||||
},
|
|
||||||
"potentialAction": [{
|
"potentialAction": [{
|
||||||
"@type": "SearchAction",
|
"@type": "SearchAction",
|
||||||
"target": "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",
|
"target": "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",
|
||||||
|
|||||||
Reference in New Issue
Block a user