Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Martins <renato.soul@gmail.com>2022-05-21 12:39:58 +0300
committerGitHub <noreply@github.com>2022-05-21 12:39:58 +0300
commitc0c367c2de79783614b926a0661e287fc401af20 (patch)
tree40d8573161e102eace03d0402e5d734ecb9d38ae
parent7f455af18af96bd4c2c1fe0606ef122593742cef (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.html2
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 }}",