{{ if gt (len .Title) 40}}

{{slicestr .Title 0 40}}...

{{ else }}

{{ .Title }}

{{ end }} {{- partial "taglist.html" . -}}
{{ if gt (len .Summary) 500 }}

{{slicestr .Summary 0 500}}...

{{ else }}

{{.Summary}}

{{ end }} {{.Params.date.Format "2 January 2006"}}
{{ if .Params.thumbnail }} {{- $image := resources.Get .Params.thumbnail -}} {{ if $image }} {{ end }} {{ end }}