diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2023-07-21 13:11:30 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2023-07-21 13:11:30 +0300 |
commit | 620607972811699d809332cf40601e1c7b34c594 (patch) | |
tree | 78ce3b63bf83a0edc3b00c86ac8c2b18c767892c | |
parent | d33eb1482c6d1cadb8e90356decbdd7570720867 (diff) | |
parent | e29ca6537324db67ec609156661a731488664555 (diff) |
Merge branch '167-website-json-schema' into 'main'
Add JSON schema metadata for Sitelinks search box
Closes #167
See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/4094
Merged-by: Achilleas Pipinellis <axil@gitlab.com>
Co-authored-by: Sarah German <sgerman@gitlab.com>
-rw-r--r-- | layouts/schema-microdata.html | 28 | ||||
-rw-r--r-- | layouts/search.html | 1 |
2 files changed, 16 insertions, 13 deletions
diff --git a/layouts/schema-microdata.html b/layouts/schema-microdata.html index 51260989..1e67c04a 100644 --- a/layouts/schema-microdata.html +++ b/layouts/schema-microdata.html @@ -1,11 +1,11 @@ <script type="application/ld+json"> -{ +[{ "@context":"http://schema.org", "@type":"Organization", "name":"GitLab", "legalName":"GitLab Inc.", "url":"https://about.gitlab.com", - "logo":"https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo.png", + "logo":"https://about.gitlab.com/images/press/logo/png/gitlab-logo-500.png", "foundingDate":"2011", "founders":[ { @@ -16,15 +16,6 @@ "@type":"Person", "name":"Dmitriy Zaporozhets" }], - "address": - { - "@type":"PostalAddress", - "streetAddress":"1233 Howard St 2F", - "addressLocality":"San Francisco", - "addressRegion":"CA", - "postalCode":"94103", - "addressCountry":"USA" - }, "sameAs":[ "https://gitlab.com/", "https://docs.gitlab.com/", @@ -33,5 +24,18 @@ "https://www.linkedin.com/company/gitlab-com", "https://en.wikipedia.org/wiki/GitLab", "https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg"] -} +}, +{ + "@context": "https://schema.org", + "@type": "WebSite", + "url": "https://docs.gitlab.com/", + "potentialAction": { + "@type": "SearchAction", + "target": { + "@type": "EntryPoint", + "urlTemplate": "https://docs.gitlab.com/search?q={search_term_string}" + }, + "query-input": "required name=search_term_string" + } +}] </script> diff --git a/layouts/search.html b/layouts/search.html index 0f1d0dc8..41368b2c 100644 --- a/layouts/search.html +++ b/layouts/search.html @@ -33,6 +33,5 @@ <%# Add analytics only in production %> <%= render '/analytics.*' %> - <%= render '/schema-microdata.*' %> </body> </html> |