Skip to content

Commit

Permalink
fix: properly escape title in schema (#358)
Browse files Browse the repository at this point in the history
Resolves an SEO error if quotes are used as part of the title.
  • Loading branch information
martinsre committed May 21, 2022
1 parent 7f455af commit c0c367c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}",
Expand Down

0 comments on commit c0c367c

Please sign in to comment.