summaryrefslogtreecommitdiffstats
path: root/layouts/partials/templates
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/templates
parent6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c (diff)
downloadgohugo-theme-ed-e8614d96f44c290224ae65a2dd029acdff1d3c74.tar.gz
Provided initial support os schema.org microdata
Diffstat (limited to 'layouts/partials/templates')
-rw-r--r--layouts/partials/templates/schema_json.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
new file mode 100644
index 0000000..aaed1e2
--- /dev/null
+++ b/layouts/partials/templates/schema_json.html
@@ -0,0 +1,5 @@
+{{ if .IsHome }}
+ {{ partial "schema.org/website.html" . }}
+{{ else if and .IsPage (ne .Params.private true) }}
+ {{ partial "schema.org/article.html" . }}
+{{ end }}