Fix build.

This commit is contained in:
Guo Xiang Tan 2016-04-14 17:22:26 +08:00
parent 379bfac36d
commit 4419d50780
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 4 additions and 4 deletions

View File

@ -159,13 +159,13 @@ module ApplicationHelper
def render_sitelinks_search_tag
json = {
'@context': 'http://schema.org',
'@type': 'WebSite',
'@context' => 'http://schema.org',
'@type' => 'WebSite',
url: Discourse.base_url,
potentialAction: {
'@type': 'SearchAction',
'@type' => 'SearchAction',
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)