{{ define "main" }}
{{ .Content }}
{{ if .Site.Params.showLatest }}

{{ i18n "index_blog_latestPosts" . }}

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

{{ .Title }}

{{ .Summary }} {{ if .Truncated }} {{ i18n "index_blog_readMore" . }} {{ end }}
{{ end }} {{ end }}

{{ i18n "index_blog_allPosts" . }}

{{ end }}