<commit_before>---
title: Twig Recipes
taxonomy:
    category: docs
---

This page contains an assortment of problems and their respective solutions related to Twig templating.

1. [List the last 5 recent blog posts](#list-the-last-5-recent-blog-post)
1. [List the blog bosts for the year](#list-the-blog-posts-for-the-year)
1. [Displaying a translated month](#displaying-a-translated-month)

### List the last 5 recent blog posts
<commit_msg>Fixes a missing "s" I came across.<commit_after>---
title: Twig Recipes
taxonomy:
    category: docs
---

This page contains an assortment of problems and their respective solutions related to Twig templating.

1. [List the last 5 recent blog posts](#list-the-last-5-recent-blog-posts)
1. [List the blog bosts for the year](#list-the-blog-posts-for-the-year)
1. [Displaying a translated month](#displaying-a-translated-month)

### List the last 5 recent blog posts

{'fraction_non_alphanumeric': 0.11123348017621146, 'fraction_numerical': 0.013215859030837005, 'mean_word_length': 4.1647727272727275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2388956', 'n_tokens_mistral': 294, 'n_tokens_neox': 275, 'n_words': 106}