{{ define "main" }}
{{ $start_date := .Params.start_date }}
{{ $end_date := .Params.end_date }}
{{ $dispatches := slice }}
{{ range (sort (.Site.RegularPages.RelatedTo (keyVals "tags" "dispatch")) "Date" "asc") }}
{{ if lt (time.Format "2006-01-02" .Date) (time.Format "2006-01-02" $start_date) }}
{{ continue }}
{{ end }}
{{ if gt (time.Format "2006-01-02" .Date) (time.Format "2006-01-02" $end_date) }}
{{ continue }}
{{ end }}
{{ $dispatches = $dispatches | append . }}
{{ end }}
{{ .Content }}
{{ .Title }}
Posted {{ .Date | time.Format "2006-01-02" }}
{{ replaceRE `` "$3 ($1)" .Content | safeHTML }}
{{ .Title }}