summaryrefslogtreecommitdiffstats
path: root/layouts/partials/schema.org/website.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/schema.org/website.html')
-rw-r--r--layouts/partials/schema.org/website.html24
1 files changed, 22 insertions, 2 deletions
diff --git a/layouts/partials/schema.org/website.html b/layouts/partials/schema.org/website.html
index c06bd76..cde04ed 100644
--- a/layouts/partials/schema.org/website.html
+++ b/layouts/partials/schema.org/website.html
@@ -7,5 +7,25 @@
"keywords": {{ partial "keywords.html" . }}
}
</script>
-{{- /* TODO: Add "potentialAction" with search.
- For more see: https://developers.google.com/structured-data/slsb-overview */ -}}
+
+{{- /*
+TODO: Add "potentialAction" with a search entrypoint (now we have a search)
+
+For more see:
+- https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox
+
+Example:
+{
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "url": "https://www.example.com/",
+ "potentialAction": {
+ "@type": "SearchAction",
+ "target": {
+ "@type": "EntryPoint",
+ "urlTemplate": "https://query.example.com/search?q={search_term_string}"
+ },
+ "query-input": "required name=search_term_string"
+ }
+}
+*/ -}}