From 4b0154803edc78d3e303496ad2d776868351516d Mon Sep 17 00:00:00 2001 From: thomas <18520168+yaythomas@users.noreply.github.com> Date: Wed, 27 Apr 2022 15:44:34 +0100 Subject: [PATCH] thumbnailUrl + wordCount > 0 --- layouts/partials/seo/schema/article.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/partials/seo/schema/article.html b/layouts/partials/seo/schema/article.html index 9d11a1d..fb5fbbc 100644 --- a/layouts/partials/seo/schema/article.html +++ b/layouts/partials/seo/schema/article.html @@ -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 -}} }