Add safe filter to the frontmatter of content category page

This commit is contained in:
Helen Chong 2024-06-10 13:32:47 +08:00
parent 69875c5e87
commit 2bc9adafe7
1 changed files with 2 additions and 2 deletions

View File

@ -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 %}