diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-04-13 18:43:46 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-04-13 18:43:46 +0300 |
commit | d18193477b4112bc26375f8a03911767a5146077 (patch) | |
tree | 9a701799873c336bebb2f096368e8d6e03587ae2 /layouts/home.html | |
parent | d6c967117f879fa8793946bbbdd85f3b67479ee6 (diff) |
add the search action microdata to the homepage only
for
https://developers.google.com/search/docs/data-types/sitelinks-searchbox
, item 2
Diffstat (limited to 'layouts/home.html')
-rw-r--r-- | layouts/home.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/layouts/home.html b/layouts/home.html index 8d8ff2f9..c97b1a9d 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -18,12 +18,17 @@ <%= render '/https_redirect.*' %> <%= render '/schema-microdata.*' %> <script type="application/ld+json"> //this homepage only - { - "@context": "http://schema.org", - "@type": "WebPage", - "url": "https://docs.gitlab.com/", - "name": "GitLab Documentation" + { + "@context":"http://schema.org", + "@type": "WebSite", + "name": "GitLab Documentation", + "url": "https://docs.gitlab.com/", + "potentialAction": { + "@type": "SearchAction", + "target": "https://docs.gitlab.com/search/?q={search_term_string}", + "query-input": "required name=search_term_string" } + } </script> </body> </html> |