{{- $pages := partialCached "writing.html" . -}} {{- if and (not .IsHome) (ne .Section "writing") }}{{ $pages = .RegularPages }}{{ end -}} {{- with .Params.filterKind }}{{ $pages = where $pages "Params.format" . }}{{ end -}} {{- printf "" | safeHTML }} {{ site.Title }} — {{ with .Params.filterKind }}{{ if eq . "essay" }}Essays{{ else }}Posts{{ end }}{{ else }}Writing{{ end }}{{ site.BaseURL }}{{ partial "text.html" (.Description | default site.Params.description) | plainify | htmlUnescape }}{{ site.Language.Locale }}{{ with .OutputFormats.Get "RSS" }}{{ end }} {{ range first 30 $pages.ByDate.Reverse }}{{ partial "text.html" .Title | plainify | htmlUnescape }}{{ .Permalink }}{{ .Permalink }}{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}{{ partial "text.html" (.Description | default (.Summary | plainify)) | plainify | htmlUnescape }}{{ end }}