Fix various rubocop warnings.
This commit is contained in:
@@ -17,11 +17,11 @@ module SeoHelper
|
||||
json_ld_tag({
|
||||
"@context": "https://schema.org",
|
||||
"@type": "VideoObject",
|
||||
"name": page_title,
|
||||
"description": meta_description,
|
||||
"uploadDate": post.created_at.iso8601,
|
||||
"thumbnailUrl": post.preview_file_url,
|
||||
"contentUrl": post.file_url,
|
||||
name: page_title,
|
||||
description: meta_description,
|
||||
uploadDate: post.created_at.iso8601,
|
||||
thumbnailUrl: post.preview_file_url,
|
||||
contentUrl: post.file_url,
|
||||
})
|
||||
end
|
||||
|
||||
@@ -30,7 +30,7 @@ module SeoHelper
|
||||
Danbooru.config.twitter_url,
|
||||
Danbooru.config.discord_server_url,
|
||||
Danbooru.config.source_code_url,
|
||||
"https://en.wikipedia.org/wiki/Danbooru"
|
||||
"https://en.wikipedia.org/wiki/Danbooru",
|
||||
].compact
|
||||
|
||||
json_ld_tag({
|
||||
@@ -41,18 +41,18 @@ module SeoHelper
|
||||
url: root_url(host: Danbooru.config.hostname),
|
||||
name: Danbooru.config.app_name,
|
||||
logo: "#{root_url(host: Danbooru.config.hostname)}images/danbooru-logo-500x500.png",
|
||||
sameAs: urls
|
||||
sameAs: urls,
|
||||
},
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": root_url(anchor: "website", host: Danbooru.config.hostname),
|
||||
"url": root_url(host: Danbooru.config.hostname),
|
||||
"name": Danbooru.config.app_name,
|
||||
"description": site_description,
|
||||
"potentialAction": [{
|
||||
url: root_url(host: Danbooru.config.hostname),
|
||||
name: Danbooru.config.app_name,
|
||||
description: site_description,
|
||||
potentialAction: [{
|
||||
"@type": "SearchAction",
|
||||
"target": "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",
|
||||
"query-input": "required name=search_term_string"
|
||||
target: "#{posts_url(host: Danbooru.config.hostname)}?tags={search_term_string}",
|
||||
"query-input": "required name=search_term_string",
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user