{{ $title := .Title }} {{ $author := .Params.author }} {{ $date := dateFormat "January 2, 2006" .Date }} {{ if not $title }} {{ errorf "no title specified in the post you created in content/%s" .File.Path }} {{ end }} {{ if not $date }} {{ errorf "no date specified in the post you created in content/%s" .File.Path }} {{ end }} {{ if not $author }} {{ errorf "no author specified in the post you created in content/%s" .File.Path }} {{ end }}

{{ $title }}

{{ $author }}

{{ $date }}