Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-04-13 18:43:46 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-04-13 18:43:46 +0300
commitd18193477b4112bc26375f8a03911767a5146077 (patch)
tree9a701799873c336bebb2f096368e8d6e03587ae2 /layouts
parentd6c967117f879fa8793946bbbdd85f3b67479ee6 (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')
-rw-r--r--layouts/home.html15
-rw-r--r--layouts/schema-microdata.html13
2 files changed, 10 insertions, 18 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>
diff --git a/layouts/schema-microdata.html b/layouts/schema-microdata.html
index 6b7f09ac..90678fd8 100644
--- a/layouts/schema-microdata.html
+++ b/layouts/schema-microdata.html
@@ -36,16 +36,3 @@
"https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg"]
}
</script>
-<script type="application/ld+json">
-{
- "@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>