From 2bc9adafe7ad3d66444ee4e487292309b1a0311f Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Mon, 10 Jun 2024 13:32:47 +0800 Subject: [PATCH] Add safe filter to the frontmatter of content category page --- src/archive/categories.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/archive/categories.njk b/src/archive/categories.njk index 71a8ec9e..359ebc7b 100644 --- a/src/archive/categories.njk +++ b/src/archive/categories.njk @@ -6,8 +6,8 @@ pagination: permalink: /categories/{{ category | slugify }}/ eleventyExcludeFromCollections: true eleventyComputed: - title: 'Content Category: "{{ category }}"' - desc: All contents under the "{{ category }}" category on {{ sitemeta.siteName | safe }}. + title: 'Content Category: "{{ category | safe }}"' + desc: All contents under the "{{ category | safe }}" category on {{ sitemeta.siteName | safe }}. --- {% set contentCount = collections.contents | filterByCategory(category) | length %}