{{ if .Site.Params.showlatest }}

Latest Post

{{ range first 1 .Data.Pages.ByPublishDate }}
{{ .Date.Format .Site.Params.dateform }}

{{ .Title }}

{{ .Summary }} {{ if .Truncated }} {{ end }}
{{ end }} {{ end }} {{ if .Site.Params.showallposts }}

All Posts

{{ else }} {{ end }}