{{ define "main" }}
{{ if .Params.thumbnail }}
Thumbnail image
{{ end }}

{{ .Title }}

{{ if or (eq .Type "post") (eq .Type .Site.Params.postSectionName) }}
{{ if isset .Site.Params "singledateformat" }} {{ .Date.Format .Site.Params.singleDateFormat }} {{ else }} {{ .Date.Format "Mon, Jan 2, 2006" }} {{ end }} {{ i18n "reading_time" .ReadingTime }}
{{ end }} {{- partial "expirationnote.html" . -}} {{- if (eq .Params.toc true) -}}

Table of Contents

{{ .TableOfContents }} {{- end -}} {{ .Content }} {{- if isset .Params "series" -}} {{- partial "series.html" . -}} {{- end -}} {{- if (eq .Params.contact true) -}} {{- partial "contact.html" . -}} {{- end -}}
{{ with .Page.Params.Categories }} {{ partial "taxonomy/categories.html" . }} {{ end }} {{ with .Page.Params.Tags }} {{ partial "taxonomy/tags.html" . }} {{ end }}
{{ if and (or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (ne .Page.Params.disableComments true) }} {{- if .Site.DisqusShortname -}}

{{ i18n "comments" }}

{{ template "_internal/disqus.html" . }}
{{- end -}} {{- if .Site.Params.utterances.repo -}}

{{ i18n "comments" }}

{{ partial "comments/utterances.html" . }}
{{- end -}} {{- if .Site.Params.CommentoURL -}}

{{ i18n "comments" }}

{{ partial "comments/commento.html" . }}
{{- end -}} {{- if .Site.Params.gitalk.repo -}}

{{ i18n "comments" }}

{{ partial "comments/gitalk.html" . }}
{{- end -}} {{ end }}
{{ end }}