Add "safe" filter to page titles

This commit is contained in:
Helen Chong 2024-12-23 21:58:26 +08:00
parent d9919fad4d
commit df9a66d323
6 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@
{% endif %}
<title>
{% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %}
{% block pageTitle %}{{ title + " | " if title | safe }}{{ sitemeta.siteName | safe }}{% endblock %}
</title>
</head>
<body>

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"