aboutsummaryrefslogtreecommitdiff
path: root/_layouts/default.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-08 17:33:03 -0300
committerEuAndreh <eu@euandre.org>2020-02-08 17:33:03 -0300
commitb28d04c2e6a29ff8c9529c19f4cbdbd18821970a (patch)
tree78a6c8731a66492fe366a26fd738e3cc1d26f7dc /_layouts/default.html
parentTODOs.org (diff)
downloadeuandre.org-b28d04c2e6a29ff8c9529c19f4cbdbd18821970a.tar.gz
euandre.org-b28d04c2e6a29ff8c9529c19f4cbdbd18821970a.tar.xz
Escape HTML title in meta tag
Avoid errors with quotes in page titles
Diffstat (limited to '')
-rw-r--r--_layouts/default.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 109d408..ef83427 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -11,7 +11,7 @@
<meta property="og:site_name" content="{{ site.title }}" />
<meta name="author" content="{{ site.author.name }}" />
<meta property="og:locale" content="{{ page.lang }}" />
- <meta property="og:title" content="{{ page.title }}" />
+ <meta property="og:title" content="{{ page.title | xml_escape }}" />
<link rel="canonical" href="{{ page.url | absolute_url }}" />
<meta property="og:url" content="{{ page.url | absolute_url }}" />