{{ partial "intro.html" }}
    {{- $posts := where .Site.RegularPages "Section" "in" (slice "posts" "bookmarks" "poetry" "reviews") -}} {{- range $posts.ByDate.Reverse | first 6 -}} {{- $postType := partial "post-type.txt" . -}} {{- $typeSVG := index .Site.Params.defaultSVG ( partial "kebab.txt" ($postType | singularize)) -}}
  1. {{ partial "svg.html" (dict "name" $typeSVG) }} {{- with .Title -}}{{ . }}{{ else }}{{ .Type | singularize | title }}{{ end -}}
    {{ $postType }} {{ partial "year-relative-date.html" .Date }}
    {{- index (split .Summary "\n") 0 | htmlUnescape -}}
  2. {{- end -}}

{{ partial "svg.html" (dict "name" "document") }} Check out all my longer posts, or read through my thoughts on others' writing.

{{- $allEvents := where .Site.RegularPages "Section" "calendar" -}} {{- $upcomingEvents := slice }} {{- range $eventPage := $allEvents -}} {{ range $eventPage.Params.timings }} {{ $event := dict "Title" $eventPage.Title "Page" $eventPage.Page "Date" (time.AsTime .starts) "Duration" (partial "iso8601.duration" .duration) }} {{ if $event.Date.Before time.Now }}{{ continue }}{{ end }} {{ $upcomingEvents = sort ($upcomingEvents | append $event) "Date" "asc" }} {{ break }}{{/* Only show the first on the list */}} {{ end }} {{- end -}} {{ if ge (len $upcomingEvents) 2 }}

{{ partial "svg.html" (dict "name" "calendar") }} Maybe you'll see me at {{ (index $upcomingEvents 0).Title }} on {{ partial "year-relative-date.html" (index $upcomingEvents 0).Date }}, or {{ (index $upcomingEvents 1).Title }} on {{ partial "year-relative-date.html" (index $upcomingEvents 1).Date }}. Get in touch if you'd like to go to these, or any other events, together!

{{ end }}
{{- $picPage := index (where .Site.RegularPages "Section" "eq" "photos") 0 -}} {{- with $picPage -}}
{{ partial "svg.html" (dict "name" "camera") }} {{ partial "year-relative-date.html" .Date }}
{{- $src := index $picPage.Params.Media 0 -}}
{{- $shortSummary := index (split .Summary "\n") 0 -}} {{- $shortSummary | htmlUnescape }}{{ if gt (len .Summary) (len $shortSummary) }} {{ end -}}
{{- end -}} {{- with (partial "latest-non-reply-note.obj") -}}
{{ partial "svg.html" (dict "name" "message") }} {{ partial "year-relative-date.html" .Date }}
{{ .Content}}
{{- end -}}