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 %} {% endif %}
<title> <title>
{% block pageTitle %}{{ title + " | " if title }}{{ sitemeta.siteName | safe }}{% endblock %} {% block pageTitle %}{{ title + " | " if title | safe }}{{ sitemeta.siteName | safe }}{% endblock %}
</title> </title>
</head> </head>
<body> <body>

View File

@ -4,7 +4,7 @@ export default {
permalink: "/articles/{{ page.fileSlug }}/", permalink: "/articles/{{ page.fileSlug }}/",
isArticle: true, isArticle: true,
eleventyComputed: { eleventyComputed: {
title: "{{ articleTitle }} | Articles", title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: { eleventyNavigation: {
key: "{{ articleTitle }}", key: "{{ articleTitle }}",
parent: "Articles" parent: "Articles"

View File

@ -3,7 +3,7 @@ export default {
tags: ["posts", "contents", "feed items"], tags: ["posts", "contents", "feed items"],
isArticle: true, isArticle: true,
eleventyComputed: { eleventyComputed: {
title: "{{ articleTitle }} | Blog", title: "{{ articleTitle | safe }} | Blog",
eleventyNavigation: { eleventyNavigation: {
key: "{{ articleTitle }}", key: "{{ articleTitle }}",
parent: "Blog Archive" parent: "Blog Archive"

View File

@ -3,7 +3,7 @@ export default {
layout: "cassettebeasts/content", layout: "cassettebeasts/content",
isArticle: true, isArticle: true,
eleventyComputed: { eleventyComputed: {
title: "{{ articleTitle }} | Articles", title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: { eleventyNavigation: {
key: "{{ articleTitle }}", key: "{{ articleTitle }}",
parent: "Cassette Beasts Articles" parent: "Cassette Beasts Articles"

View File

@ -3,7 +3,7 @@ export default {
layout: "starwarskotor/content", layout: "starwarskotor/content",
isArticle: true, isArticle: true,
eleventyComputed: { eleventyComputed: {
title: "{{ articleTitle }} | Articles", title: "{{ articleTitle | safe }} | Articles",
eleventyNavigation: { eleventyNavigation: {
key: "{{ articleTitle }}", key: "{{ articleTitle }}",
parent: "KotOR Articles" parent: "KotOR Articles"

View File

@ -3,7 +3,7 @@ export default {
layout: "starwarskotor/content", layout: "starwarskotor/content",
isArticle: true, isArticle: true,
eleventyComputed: { eleventyComputed: {
title: "{{ articleTitle }} | Guides", title: "{{ articleTitle | safe }} | Guides",
eleventyNavigation: { eleventyNavigation: {
key: "{{ articleTitle }}", key: "{{ articleTitle }}",
parent: "KotOR Guides" parent: "KotOR Guides"