Discussions

Ask a Question
Back to All

Singularize string filter

I have a 'Categories' content type populated with pluralized category names ('movies', 'games', 'videos', etc.).

Is it possible to singularize a category name in certain places in the Liquid template? Or is it considered better practice to have a separate field in categories.yml for a singular name?