From df9a66d3236e73d5d93896e3ae0096b1fef07f20 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Mon, 23 Dec 2024 21:58:26 +0800
Subject: [PATCH] Add "safe" filter to page titles
---
src/_includes/global/baselayout.njk | 2 +-
src/articles/articles.11tydata.js | 2 +-
src/blog/posts/posts.11tydata.js | 2 +-
src/shrines/cassettebeasts/articles/articles.11tydata.js | 2 +-
src/shrines/starwarskotor/articles/articles.11tydata.js | 2 +-
src/shrines/starwarskotor/guides/guides.11tydata.js | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/_includes/global/baselayout.njk b/src/_includes/global/baselayout.njk
index b61c5c18..49319ef4 100644
--- a/src/_includes/global/baselayout.njk
+++ b/src/_includes/global/baselayout.njk
@@ -43,7 +43,7 @@
{% endif %}
- {% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %}
+ {% block pageTitle %}{{ title + " | " if title | safe }}{{ sitemeta.siteName | safe }}{% endblock %}
diff --git a/src/articles/articles.11tydata.js b/src/articles/articles.11tydata.js
index fc26d2c0..e69ecc35 100644
--- a/src/articles/articles.11tydata.js
+++ b/src/articles/articles.11tydata.js
@@ -4,7 +4,7 @@ export default {
permalink: "/articles/{{ page.fileSlug }}/",
isArticle: true,
eleventyComputed: {
- title: "{{ articleTitle }} | Articles",
+ title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: {
key: "{{ articleTitle }}",
parent: "Articles"
diff --git a/src/blog/posts/posts.11tydata.js b/src/blog/posts/posts.11tydata.js
index 86c6c322..3be72907 100644
--- a/src/blog/posts/posts.11tydata.js
+++ b/src/blog/posts/posts.11tydata.js
@@ -3,7 +3,7 @@ export default {
tags: ["posts", "contents", "feed items"],
isArticle: true,
eleventyComputed: {
- title: "{{ articleTitle }} | Blog",
+ title: "{{ articleTitle | safe }} | Blog",
eleventyNavigation: {
key: "{{ articleTitle }}",
parent: "Blog Archive"
diff --git a/src/shrines/cassettebeasts/articles/articles.11tydata.js b/src/shrines/cassettebeasts/articles/articles.11tydata.js
index c3df5d05..14147379 100644
--- a/src/shrines/cassettebeasts/articles/articles.11tydata.js
+++ b/src/shrines/cassettebeasts/articles/articles.11tydata.js
@@ -3,7 +3,7 @@ export default {
layout: "cassettebeasts/content",
isArticle: true,
eleventyComputed: {
- title: "{{ articleTitle }} | Articles",
+ title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: {
key: "{{ articleTitle }}",
parent: "Cassette Beasts Articles"
diff --git a/src/shrines/starwarskotor/articles/articles.11tydata.js b/src/shrines/starwarskotor/articles/articles.11tydata.js
index 0da84bc1..4f551929 100644
--- a/src/shrines/starwarskotor/articles/articles.11tydata.js
+++ b/src/shrines/starwarskotor/articles/articles.11tydata.js
@@ -3,7 +3,7 @@ export default {
layout: "starwarskotor/content",
isArticle: true,
eleventyComputed: {
- title: "{{ articleTitle }} | Articles",
+ title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: {
key: "{{ articleTitle }}",
parent: "KotOR Articles"
diff --git a/src/shrines/starwarskotor/guides/guides.11tydata.js b/src/shrines/starwarskotor/guides/guides.11tydata.js
index 537c4ba9..6dd87fa4 100644
--- a/src/shrines/starwarskotor/guides/guides.11tydata.js
+++ b/src/shrines/starwarskotor/guides/guides.11tydata.js
@@ -3,7 +3,7 @@ export default {
layout: "starwarskotor/content",
isArticle: true,
eleventyComputed: {
- title: "{{ articleTitle }} | Guides",
+ title: "{{ articleTitle | safe }} | Guides",
eleventyNavigation: {
key: "{{ articleTitle }}",
parent: "KotOR Guides"