{{ define "main" }} {{ if .Params.toc }} {{ partial "toc.html" . }} {{ end }}

{{ .Title }}

Posted at — {{ dateFormat .Site.Params.timeformat .Date }} {{ 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 and .Params.comment (eq .Site.Params.comment "disqus")}} {{ partial "disqus.html" . }} {{ end }} {{ if and .Params.comment (eq .Site.Params.comment "ovo")}} {{ partial "ovo.html" . }} {{ end }} {{ end }}