{{ if .ctx.Resources.GetMatch "featuredImage.*" }} {{ else if and (isset .ctx.Params "featuredimage") (ne .ctx.Params.featuredImage "") }} {{ end }}
{{ if or ( or ( .ctx.Params.showDate | default true ) .ctx.Params.categories) .ctx.Params.author }}
{{ if ( .ctx.Params.showDate | default true ) }} {{ if ( .ctx.Site.Params.enableMomentJs | default true ) }} {{ .ctx.PublishDate.Format "2006-01-02" }} {{ else }} {{ .ctx.PublishDate.Format (.ctx.Site.Params.DateFormat | default "2006-01-02") }} {{ end }} {{ end }} {{ with .ctx.Params.categories }} {{ range . }} {{ $urlValue := replace . " " "-" | lower}} {{ with $.ctx.Site.GetPage (printf "/categories/%s" $urlValue) }} {{ .Title }} {{ end }} {{ end }} {{ end }} {{ with .ctx.Params.author }} {{ $urlValue := replace . " " "-" | lower}} {{ with $.ctx.Site.GetPage (printf "/author/%s" $urlValue ) }} {{ .Title }} {{ end }} {{ end }}
{{ end }} {{ .ctx.Content }}
{{ partial "article-footer.html" .ctx }}