-
+ Hello! I'm JPHastings-Spital, a maker, software engineer, swing dancer, and all-round miriscient chap living in London, UK. Until recently I was principal engineer at Deliveroo, I'm now enjoying a career break until after my wedding in July.
-
-
-
-
-
- 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.ByDate.Reverse | first 6 -}}
- {{- $typeEmoji := index .Site.Params.defaultEmoji .Type -}}
-
diff --git a/layouts/partials/post-previews.html b/layouts/partials/post-previews.html
new file mode 100644
index 00000000..7ce9d0d7
--- /dev/null
+++ b/layouts/partials/post-previews.html
@@ -0,0 +1,79 @@
+
+
+ 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 -}}
+ {{- $typeSVG := index .Site.Params.defaultSVG .Type -}}
+
+ {{- 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 -}}
+