summaryrefslogtreecommitdiffstats
path: root/layouts/partials/schema.org/website.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-16 23:34:02 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-16 23:34:02 +0200
commit1210306d64fdc7b05e06c6fdb8158f8473d589f7 (patch)
treecf54c656971723cca1ae314fabcc90826f5040af /layouts/partials/schema.org/website.html
parenta516af25e13783b622dd54e1fd6ef149eacf2988 (diff)
downloadgohugo-theme-ed-1210306d64fdc7b05e06c6fdb8158f8473d589f7.tar.gz
Provide ContactPage for Schema.org
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"
+ }
+}
+*/ -}}