{{ if isset .Site.Params "recent_posts" }} {{ if .Site.Params.recent_posts.enable }}

{{ .Site.Params.recent_posts.title | markdownify }}

{{ .Site.Params.recent_posts.subtitle | markdownify }}

{{ $posts := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range first 4 $posts.Pages }}
{{ if isset .Params "banner" }} {{ else }} {{ end }}

{{ .Title }}

{{ if isset .Params "authors" }} {{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}{{ $author }}{{ end }} {{ end }} {{ if .Params.date }} {{ $createdAt := .Date.Format .Site.Params.date_format }} {{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }} {{ $createdAt = replace $createdAt $month (i18n $month) }} {{ end }} {{ i18n "publishedOn" }} {{ $createdAt }} {{ end }}

{{ if not .Site.Params.recent_posts.hide_summary }}

{{ .Summary }}

{{ i18n "continueReading" }}

{{ end }}
{{ end }}
{{ end }} {{ end }}