{{ partial "header.html" . }}
{{ partial "head.html" . }}
Recent posts
{{- $.Scratch.Set "counter" 0 -}} {{- range .Data.Pages -}} {{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}} {{- else -}} {{- if lt ($.Scratch.Get "counter") (.Site.Params.RecentPostsCount | default 10) -}}
{{ dateFormat "Jan 2, 2006" .Date }}
{{.Title}}
—
{{ if isset .Params "description" }} {{ .Description }} {{ else if gt (len .RawContent) 120 }} {{ slicestr .RawContent 0 120 }}... {{ else }} {{ .RawContent }} {{ end }}
{{- $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) -}} {{- end -}} {{- end -}} {{- end -}}
All articles →
{{ partial "footer.html" . }}