From c0c367c2de79783614b926a0661e287fc401af20 Mon Sep 17 00:00:00 2001 From: Renato Martins Date: Sat, 21 May 2022 10:39:58 +0100 Subject: fix: properly escape title in schema (#358) Resolves an SEO error if quotes are used as part of the title. --- layouts/partials/schema.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html index 6696200..4f82f28 100644 --- a/layouts/partials/schema.html +++ b/layouts/partials/schema.html @@ -3,7 +3,7 @@ { "@context": "http://schema.org", "@type": "WebSite", - "name": "{{ .Site.Title }}", + "name": {{ .Site.Title | jsonify | safeJS }}, "url": "{{ .Site.BaseURL }}", "description": "{{ .Site.Params.description }}", "thumbnailUrl": "{{ .Site.Params.Logo | absURL }}", -- cgit v1.2.3