Add safe filter to the frontmatter of content category page
This commit is contained in:
parent
69875c5e87
commit
2bc9adafe7
|
@ -6,8 +6,8 @@ pagination:
|
||||||
permalink: /categories/{{ category | slugify }}/
|
permalink: /categories/{{ category | slugify }}/
|
||||||
eleventyExcludeFromCollections: true
|
eleventyExcludeFromCollections: true
|
||||||
eleventyComputed:
|
eleventyComputed:
|
||||||
title: 'Content Category: "{{ category }}"'
|
title: 'Content Category: "{{ category | safe }}"'
|
||||||
desc: All contents under the "{{ category }}" category on {{ sitemeta.siteName | safe }}.
|
desc: All contents under the "{{ category | safe }}" category on {{ sitemeta.siteName | safe }}.
|
||||||
---
|
---
|
||||||
|
|
||||||
{% set contentCount = collections.contents | filterByCategory(category) | length %}
|
{% set contentCount = collections.contents | filterByCategory(category) | length %}
|
||||||
|
|
Loading…
Reference in New Issue