{{ $num_recent_posts := default 5 .Site.Params.sidebar.num_recent_posts }} {{ $posts := first $num_recent_posts (where .Site.Pages "Section" "in" .Site.Params.mainSections) }} {{ if gt (len $posts) 0 }}

{{ i18n "recentPosts" }}

    {{ range first 2 $posts }}
  1. {{.Title | markdownify }}
  2. {{ end }}
{{ end }}