{{ .Title }} {{ if (or (isset .Site "author") (isset .Site "title"))}} {{ if isset .Site "author" }} {{ .Site.Author }} {{ else if isset .Site "title" }} {{ .Site.Title }} {{ end }} {{ end }} {{ $dataFormat := .Site.Params.dateFormat | default "2006-01-02" }} {{ .Date.Format $dataFormat }} {{ if (and .Site.Params.show_updated (ne .Lastmod .Date)) }} (Updated: {{ .Lastmod.Format $dataFormat }}) {{ end }} {{ $showReadTime := .Site.Params.showReadTime | default false }} {{if $showReadTime}} {{ $readTime := math.Round (div (countwords .Content) 220.0) }} {{ $readTime }} minute read {{ end }} {{ if gt .Params.categories 0 }} {{ range $index, $value := .Params.categories }} {{ if gt $index 0 }} {{ print ", " }} {{ end }} {{ $value }} {{ end }} {{ end }} {{ if gt .Params.tags 0 }} {{ range $index, $value := .Params.tags }} {{ if gt $index 0 }} {{ print ", " }} {{ end }} {{ $value }} {{ end }} {{ end }} {{ with .Resources.ByType "image" }} {{ range $index, $value := . }} {{ end }} {{ end }} {{ if .Site.Params.tocInline }} {{ .TableOfContents }} {{ end }} {{ .Content}}