From c0c367c2de79783614b926a0661e287fc401af20 Mon Sep 17 00:00:00 2001
From: Renato Martins <renato.soul@gmail.com>
Date: Sat, 21 May 2022 09:39:58 +0000
Subject: [PATCH] fix: properly escape title in schema (#358)

---
 layouts/partials/schema.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 }}",

--
Gitblit v1.10.0