{{ if .Site.Params.showlatest }}
Latest Post
{{ range first 1 .Data.Pages.ByPublishDate }}
{{ .Date.Format .Site.Params.dateform }}
{{ .Summary }}
{{ if .Truncated }}
{{ end }}
{{ end }}
{{ end }}
{{ if .Site.Params.showallposts }}
All Posts
{{ range .Data.Pages.ByPublishDate }}
{{ if eq .Section "blog" }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}
{{ else }}
{{ end }}