{{ .ctx.Title }}

{{ 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 }} {{ if ( .ctx.Site.Params.showReadingTime | default false ) }} {{ if .ctx.Params.readingTime }} {{ i18n "readingTime" .ctx.Params.readingTime }} {{ else }} {{ i18n "readingTime" .ctx.ReadingTime }} {{ 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 }}
{{ if or (eq .template_type "single") (.ctx.Params.noSummary) }} {{ if and (gt .ctx.WordCount .ctx.Site.Params.tocMinWordCount ) (.ctx.Params.toc) }}

{{ i18n "tableOfContents" | default "tableOfContents" }}

{{ .ctx.TableOfContents }} {{ end }} {{ .ctx.Content }} {{ else }} {{ .ctx.Summary }} {{ if .ctx.Truncated }} {{ i18n "continueReading" }} {{ end }} {{ end }}