From 1103ab0585e48559e3087b3a662cee6d32757eec Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Mon, 14 Jan 2019 15:56:27 +0100 Subject: [PATCH] Update jsonld --- themes/neff/layouts/partials/schema/image.jsonld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/neff/layouts/partials/schema/image.jsonld b/themes/neff/layouts/partials/schema/image.jsonld index 894ce4a..33f8800 100755 --- a/themes/neff/layouts/partials/schema/image.jsonld +++ b/themes/neff/layouts/partials/schema/image.jsonld @@ -1,6 +1,6 @@ { "@context": "http://schema.org", "@type": "ImageObject", - "@id": {{ delimit (slice .ctx.Site.BaseURL .TrimPrefix "/" .url) "" | jsonify }}, - "url": {{ delimit (slice .ctx.Site.BaseURL .TrimPrefix "/" .url) "" | jsonify }} + "@id": {{ delimit (slice (strings.TrimSuffix "/" .ctx.Site.BaseURL) .url) "" | jsonify }}, + "url": {{ delimit (slice (strings.TrimSuffix "/" .ctx.Site.BaseURL) .url) "" | jsonify }} } \ No newline at end of file