{{ define "body" }}
{{ "" | safeHTML }}

{{.Title}}

{{ with .Summary }}

{{ . }}

{{ end }} {{- with (index .Site.Data.people "trwnh.com").a }}{{/* TODO: make author a variable instead of assuming it's always me */}}

{{- partial "mf2/h-card.html" . }}

{{ end -}}{{/* end with author h-card */ -}}
{{- .Content }}

{{ "" | safeHTML }}
    {{- range .Pages }} {{- if .Title }}{{/* indieweb post kind is probably article */}}
  1. :

    {{.Title}}

    {{- if isset .Params "summary" }}{{/* only use explicitly-set summaries, not auto-generated ones */ -}}
    {{.Summary}} {{- end }}{{/* end if isset .Params "summary" */ -}}
  2. {{- else }}{{/* indieweb post kind is probably note */}}
  3. : untitled post

    {{- .Summary }}

  4. {{- end }}{{/* end if-title post type check */ -}} {{- end }}{{/* end range over pages */ -}}
{{ end }}{{/* end define-body */ -}}