Use ERB/Slim in frontmatter?

I have a custom collection for the categories and this category.html.slim.erb template:

---
title: <%= category.pluralize %>
pageable: true
---

= partial 'partials/articles'

and I can’t make it work. Changing it to #{category} does not work either.

How can I achieve this?

1 Like