Skip to content

Commit

Permalink
Added Sitelinks Search Box schema data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 28, 2016
1 parent 8b3860e commit 1e1c3f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@
ga('create', 'UA-265870-38', 'auto');
<% end %>
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://libraries.io/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://libraries.io/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
Expand Down

0 comments on commit 1e1c3f6

Please sign in to comment.