{{ if .Title -}} {{- .Title -}} {{- else -}} {{- .Type | singularize | title }} from {{ partial "year-relative-date.txt" .Date -}} {{- end -}}