{{ with .Site.GetPage "section" "blog" }}
{{ if .Site.Params.showLatest }}

{{ i18n "index_blog_latestPosts" . }}

{{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }}
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}

{{ .Title }}

{{ .Summary }} {{ if .Truncated }} {{ i18n "index_blog_readMore" . }} {{ end }}
{{ end }} {{ end }} {{ if .Site.Params.showAllPosts }}

{{ i18n "index_blog_allPosts" . }}

{{ else }} {{ end }}
{{ partial "top-icon.html" . }}

{{ end }}