{{ define "title" }} {{ with .Site.GetPage "/blog" }}

{{ .Title | markdownify }}

{{ end }} {{ end }} {{ define "main" }}

{{ .Title | markdownify }}

{{ if .Params.author }}

{{ $data := .Params.author }} By {{- range first 1 $data -}} {{ . | markdownify }} {{- end -}} {{- range after 1 $data -}} , {{ . | markdownify }} {{- end -}}

{{ end }}
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }} {{ if .Site.Params.showReadingTime | default true }} {{ if .Params.date }} | {{ end }} {{ i18n "blog_readingTime" .ReadingTime }} {{ end }}
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest }}
{{ i18n "blog_shareThis" . }}: {{ if .Site.Params.share.twitter }} {{ end }} {{ if .Site.Params.share.facebook }} {{ end }} {{ if .Site.Params.share.pinterest }} {{ end }}
{{ end }} {{ range $taxonomy_term, $taxonomy := .Params }} {{ with $.Site.GetPage $taxonomy_term }} {{ $len := (len $taxonomy) }}

{{ $taxonomy_term | title }}: {{ range $key, $value := $taxonomy }} {{ $value }}{{ if ne (add $key 1) $len }},{{ end }} {{ end }}

{{ end }} {{ end }}
{{ .Content }}
{{ partial "comments.html" . }} {{ end }}