{{- $count := site.Params.home.recentPostsCount | default 5 -}} {{- $posts := first $count (where (where site.RegularPages "Type" "post") "Draft" false) -}} {{- with $posts -}}

{{ i18n "recentPosts" | default "Recent Posts" }}

{{- if gt (len (where (where site.RegularPages "Type" "post") "Draft" false)) $count }}

{{ i18n "viewAll" | default "View all" }} →

{{- end }}
{{- end -}}