From aebcc92712014b9db039166ef895cd294df2cd8d Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Nov 2024 21:35:34 +0530 Subject: [PATCH] JSON Schema uses 'image' for a Person and 'logo' for an Organization. --- layouts/partials/templates/schema_json.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 0b6577d0..dc3bfd6a 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -6,7 +6,11 @@ "name": {{ site.Title }}, "url": {{ site.Home.Permalink }}, "description": {{ site.Params.description | plainify | truncate 180 | safeHTML }}, + {{- if (eq site.Params.schema.publisherType "Person") }} + "image": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}, + {{- else }} "logo": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}, + {{- end }} "sameAs": [ {{- if site.Params.schema.sameAs }} {{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }}