{{ define "main" }}
{{ with index .Site.Lists .Collection }}

{{ .Title }}

{{ end }}

{{ .Title }}

{{ $closed := closed .Params.closes }} {{ if $closed }}

Applications for this job have closed.

{{ end }}
{{ with .Params.location }}
Where
{{ . }}
{{ end }} {{ with .Params.employment }}
Kind
{{ . }}
{{ end }} {{ with .Params.pay }}
Pay
{{ . }}
{{ end }} {{ with .Params.closes }}
Apply by
{{ formatDate "Monday, January 2, 2006" . }}
{{ end }}
{{ with .Content }}
{{ . }}
{{ end }} {{ if not $closed }}{{ with .Params.apply }}

Apply

{{ end }}{{ end }}
{{ end }}