fix(metadata/static.liquid): escape title content

This commit is contained in:
Cory Dransfeldt 2025-06-16 05:59:05 -07:00
parent 864b777dba
commit d13984f114
No known key found for this signature in database
3 changed files with 10 additions and 8 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "10.6.3",
"version": "10.6.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "10.6.3",
"version": "10.6.4",
"license": "MIT",
"dependencies": {
"minisearch": "^7.1.2",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "10.6.3",
"version": "10.6.4",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {

View file

@ -1,9 +1,11 @@
<title>{{ pageTitle }}</title>
<meta name="description" content="{{ pageDescription | markdown | strip_html | htmlTruncate | escape }}" />
<meta property="og:title" content="{{ pageTitle }}" />
<meta property="og:description" content="{{ pageDescription | markdown | strip_html | htmlTruncate | escape }}" />
{%- assign title = pageTitle | escape -%}
{%- assign description = pageDescription | markdown | strip_html | htmlTruncate | escape -%}
<title>{{ title }}</title>
<meta name="description" content="{{ description }}" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:type" content="{{ page.metadata.type | default: 'article' }}" />
<meta property="og:url" content="{{ fullUrl }}" />
<meta property="og:image" content="{{ ogImage }}" />
<link rel="alternate" type="application/json+oembed" href="{{ oembedUrl }}" title="{{ pageTitle }}" />
<link rel="alternate" type="application/json+oembed" href="{{ oembedUrl }}" title="{{ title }}" />
<link rel="canonical" href="{{ fullUrl }}" />