diff options
author | Renato Martins <renato.soul@gmail.com> | 2022-05-21 12:39:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-21 12:39:58 +0300 |
commit | c0c367c2de79783614b926a0661e287fc401af20 (patch) | |
tree | 40d8573161e102eace03d0402e5d734ecb9d38ae | |
parent | 7f455af18af96bd4c2c1fe0606ef122593742cef (diff) |
fix: properly escape title in schema (#358)
Resolves an SEO error if quotes are used as part of the title.
-rw-r--r-- | 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 }}", |