From c2ce27ea6c5094bea563cbd8ab0ec8759273575b Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Mon, 14 Jan 2019 15:44:05 +0100 Subject: [PATCH] Update jsonld --- themes/neff/layouts/partials/schema/organization.jsonld | 6 +++--- themes/neff/layouts/partials/schema/post.jsonld | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/neff/layouts/partials/schema/organization.jsonld b/themes/neff/layouts/partials/schema/organization.jsonld index b86d9a2..1d37350 100755 --- a/themes/neff/layouts/partials/schema/organization.jsonld +++ b/themes/neff/layouts/partials/schema/organization.jsonld @@ -5,12 +5,12 @@ "url": "{{ .ctx.Site.BaseURL }}", "email": "{{ .org.email }}", "telephone": {{ .org.telephone | jsonify }}, + "logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }} {{ if (ne .short true) }} {{- with .org.faxNumber -}} - "faxNumber": {{ . | jsonify }} + ,"faxNumber": {{ . | jsonify }} {{- end -}}, - "address": {{ partial "schema/address.jsonld" (dict "address" .org.address "ctx" .ctx)}}, - "logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }} + ,"address": {{ partial "schema/address.jsonld" (dict "address" .org.address "ctx" .ctx)}}, {{ with .org.social }} {{- $social := slice -}} {{- with .facebook }} diff --git a/themes/neff/layouts/partials/schema/post.jsonld b/themes/neff/layouts/partials/schema/post.jsonld index 25c610c..cb9c3ef 100755 --- a/themes/neff/layouts/partials/schema/post.jsonld +++ b/themes/neff/layouts/partials/schema/post.jsonld @@ -30,5 +30,5 @@ "keywords": "{{ with .post.Keywords }}{{ delimit . ", " }}{{ end }}", {{ $imageURL := path.Join .post.RelPermalink "bilder/" .post.Params.featuredImage }} "image": {{ partial "schema/image.jsonld" (dict "url" $imageURL "ctx" .ctx) }}, - "articleBody": {{ .ctx.Content }} + "articleBody": {{ .ctx.Content | jsonify }} }