This site is a much loved wild garden; things aren't perfectly orgnaised, there are lots of nooks and crannies to explore. Follow your nose and see where you end up.
{{- $posts := where .Site.RegularPages "Section" "in" (slice "posts" "bookmarks" "poetry") -}}
{{- range $posts.ByPublishDate.Reverse | first 6 -}}
{{- $postType := partial "post-type.txt" . -}}
{{- $typeSVG := index .Site.Params.defaultSVG ( partial "kebab.txt" $postType) -}}
-
{{ 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 -}}
{{- end -}}
{{- $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 -}}
{{- end -}}
{{- $notePage := index (where .Site.RegularPages "Section" "eq" "notes") 0 -}}
{{- with $notePage -}}
{{- end -}}