summaryrefslogtreecommitdiffstats
path: root/layouts/partials/schema.org/website.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-06-05 14:50:21 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-06-05 14:50:21 +0200
commite8614d96f44c290224ae65a2dd029acdff1d3c74 (patch)
treecc40b30f3bd88648f7e60a220db20d1f68041565 /layouts/partials/schema.org/website.html
parent6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c (diff)
downloadgohugo-theme-ed-e8614d96f44c290224ae65a2dd029acdff1d3c74.tar.gz
Provided initial support os schema.org microdata
Diffstat (limited to 'layouts/partials/schema.org/website.html')
-rw-r--r--layouts/partials/schema.org/website.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/schema.org/website.html b/layouts/partials/schema.org/website.html
new file mode 100644
index 0000000..ef6609e
--- /dev/null
+++ b/layouts/partials/schema.org/website.html
@@ -0,0 +1,10 @@
+<script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "name": {{ partial "title.html" . }},
+ "url": {{ site.BaseURL }}
+ }
+</script>
+{{- /* TODO: Add "potentialAction" with search.
+ For more see: https://developers.google.com/structured-data/slsb-overview */ -}}