From 6c5af25cf5d4e094375568ec562cb8728ea7f93c Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Tue, 11 Jun 2019 14:47:15 +0200 Subject: [PATCH] Fixing non valid json ld (should never do json by hand). --- layouts/partials/section_json_ld.html | 4 ++-- layouts/partials/single_json_ld.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/section_json_ld.html b/layouts/partials/section_json_ld.html index c7a9a07..236b3a0 100644 --- a/layouts/partials/section_json_ld.html +++ b/layouts/partials/section_json_ld.html @@ -23,13 +23,13 @@ "publisher": { "@type": "Organization", "name": {{ .Site.Title }}, - "url": {{ .Site.BaseURL }}, {{ with $.Param "icon" -}} "logo" : { "@type": "ImageObject", "url": {{ . | absURL }} - } + }, {{ end -}} + "url": {{ .Site.BaseURL }} } } diff --git a/layouts/partials/single_json_ld.html b/layouts/partials/single_json_ld.html index 12e3665..e1fa49f 100644 --- a/layouts/partials/single_json_ld.html +++ b/layouts/partials/single_json_ld.html @@ -26,13 +26,13 @@ "publisher": { "@type": "Organization", "name": {{ .Site.Title }}, - "url": {{ .Site.BaseURL }}, {{ with $.Param "icon" -}} "logo" : { "@type": "ImageObject", "url": {{ . | absURL }} - } + }, {{ end -}} + "url": {{ .Site.BaseURL }} } }