Fix build.
This commit is contained in:
parent
379bfac36d
commit
4419d50780
|
@ -159,13 +159,13 @@ module ApplicationHelper
|
||||||
|
|
||||||
def render_sitelinks_search_tag
|
def render_sitelinks_search_tag
|
||||||
json = {
|
json = {
|
||||||
'@context': 'http://schema.org',
|
'@context' => 'http://schema.org',
|
||||||
'@type': 'WebSite',
|
'@type' => 'WebSite',
|
||||||
url: Discourse.base_url,
|
url: Discourse.base_url,
|
||||||
potentialAction: {
|
potentialAction: {
|
||||||
'@type': 'SearchAction',
|
'@type' => 'SearchAction',
|
||||||
target: "#{Discourse.base_url}/search?q={search_term_string}",
|
target: "#{Discourse.base_url}/search?q={search_term_string}",
|
||||||
'query-input': 'required name=search_term_string',
|
'query-input' => 'required name=search_term_string',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
content_tag(:script, MultiJson.dump(json).html_safe, type: 'application/ld+json'.freeze)
|
content_tag(:script, MultiJson.dump(json).html_safe, type: 'application/ld+json'.freeze)
|
||||||
|
|
Loading…
Reference in New Issue