{{ 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 }}

{{ with .Params.author }} {{ i18n "authorBy" }} {{ . }} {{ end }} {{ i18n "publishedOn" }} {{ .Date.Format .Site.Params.date_format }}

{{ .Summary }}

{{ i18n "continueReading" }}

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