Skip to content

Commit

Permalink
thumbnailUrl + wordCount > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
yaythomas committed Apr 27, 2022
1 parent b911739 commit 4b01548
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/partials/seo/schema/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
"publisher": {
"@id": {{ .Param "seo_org_id" | jsonify }}
},
"url": {{ .Permalink | jsonify }},
"wordCount": {{ .WordCount | jsonify }}
{{ with $thumbnailUrl := .Param "seo_article_thumbnail" -}}
"thumbnailUrl": {{ (resources.Get $thumbnailUrl | fingerprint ).Permalink | jsonify }},
{{ end -}}
"url": {{ .Permalink | jsonify }}{{ if gt .WordCount 0 }},
"wordCount": {{ .WordCount | jsonify }}{{ end }}
{{ end -}}
}

0 comments on commit 4b01548

Please sign in to comment.