From 1210306d64fdc7b05e06c6fdb8158f8473d589f7 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 16 Jul 2022 23:34:02 +0200 Subject: Provide ContactPage for Schema.org --- layouts/partials/schema.org/website.html | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'layouts/partials/schema.org/website.html') 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" . }} } -{{- /* 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" + } +} +*/ -}} -- cgit v1.2.3