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", "name": "coryd.dev",
"version": "10.6.3", "version": "10.6.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.6.3", "version": "10.6.4",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"minisearch": "^7.1.2", "minisearch": "^7.1.2",

View file

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

View file

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