Skip to content

Commit

Permalink
fix(json-ld): missing image in non-mainSections page
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Apr 14, 2020
1 parent 4094ff7 commit 26baf9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/utils/json-ld.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@
"url": {{ $Deliver.Permalink }},
"name": {{ $rawTitle }},
"description": {{ $description }},
{{ with $images -}}
"image": {{ . }},
{{ else -}}
{{ with $Deliver.Site.Params.siteLogo -}}
"image": {{ . | absURL }},
{{ end -}}
{{ end -}}
{{ with $author.copyright -}}
"license": {{ . | plainify }},
{{ end -}}
Expand Down

0 comments on commit 26baf9d

Please sign in to comment.