Skip to content

Commit

Permalink
JSON Schema uses 'image' for a Person and 'logo' for an Organization.
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Nov 8, 2024
1 parent 0234865 commit aebcc92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/templates/schema_json.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit aebcc92

Please sign in to comment.