{{ define "main" }}

{{ .Title }}

{{ if .Site.Params.displayDate }} {{ T "post.at" }} — {{ .Date | time.Format (T "timeformat") }} {{ end }} {{ if .Draft }} DRAFT {{ end }}
{{ if .Params.tags }}
{{ range .Params.tags }} #{{ . }} {{ end }}
{{ end }}

{{ .Description | markdownify | safeHTML }}

{{ .Content }}
{{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }} {{ if or .Params.mermaid .Site.Params.mermaid }} {{ partial "mermaid.html" . }} {{ end }} {{ if or .Params.comment (and .Site.Params.commentOnAllPosts (ne .Params.comment false)) }} {{ if eq .Site.Params.comment "disqus"}} {{ partial "disqus.html" . }} {{ end }} {{ if eq .Site.Params.comment "utterances"}} {{ partial "utterances.html" . }} {{ end }} {{ if eq .Site.Params.comment "giscus" }} {{ partial "giscus.html" }} {{ end }} {{ if eq .Site.Params.comment "ovo"}} {{ partial "ovo.html" . }} {{ end }} {{ end }}
{{ end }}