{{ 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 }}
{{- with .AlternativeOutputFormats }}

Alternate formats:

{{- end }}
{{ "" | 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 */}} {{- if eq .Content (truncate 1000 "..." .Content) }}{{/* if it's short enough, render the whole thing. */}}
  3. : untitled post

    {{- .Content }} {{/* TODO: better representation? */}}
  4. {{- else }}{{/* otherwise render a truncated summary. */}}
  5. : untitled post

    {{- .Summary }} {{/* TODO: better representation? */}}

    Read more

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