Skip to content

Commit

Permalink
Don't escape values in title for tutorials and articles
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Feb 3, 2024
1 parent ad2d6c3 commit a9d7699
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/routes/_.$postType.$/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export async function queryArticle(
postType: "articles" as const,
article: { title: article.title, body: article.renderable },
meta: [
{ title: t("article.meta.title", { note: article.title }) },
{
title: t("article.meta.title", {
note: article.title,
interpolation: { escapeValue: false },
}),
},
{ name: "description", content: article.excerpt },
{
"script:ld+json": {
Expand Down Expand Up @@ -77,7 +82,10 @@ export async function queryTutorial(
let locale = await new I18n().getLocale(request);
let t = await new I18n().getFixedT(locale);

let title = t("tutorial.document.title", { title: tutorial.title });
let title = t("tutorial.document.title", {
title: tutorial.title,
interpolation: { escapeValue: false },
});

return {
postType: "tutorials" as const,
Expand Down

0 comments on commit a9d7699

Please sign in to comment.